OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
t#31538:fix default value
[pettanr/pettanr.git]
/
spec
/
models
/
ground_picture_spec.rb
diff --git
a/spec/models/ground_picture_spec.rb
b/spec/models/ground_picture_spec.rb
index
92228a7
..
8230ce0
100644
(file)
--- a/
spec/models/ground_picture_spec.rb
+++ b/
spec/models/ground_picture_spec.rb
@@
-171,9
+171,10
@@
describe GroundPicture do
end
describe '上書き補充に於いて' do
- it '
defined
' do
+ it '
panel_idが設定されている
' do
@gp = FactoryGirl.build :ground_picture, :panel_id => @panel.id, :picture_id => @p.id
- @gp.overwrite
+ @gp.overwrite @panel.id
+ @gp.panel_id.should eq @panel.id
end
end