Permalink
Browse files

FactoryGirl4に対応。

  • Loading branch information...
sakomoko committed Dec 31, 2012
1 parent 1d3db19 commit b4402b8ef62baf6a850c1fa28744a30a4a7bc752
View
@@ -1,161 +1,182 @@
GEM
remote: http://rubygems.org/
specs:
- actionmailer (3.1.3)
- actionpack (= 3.1.3)
- mail (~> 2.3.0)
- actionpack (3.1.3)
- activemodel (= 3.1.3)
- activesupport (= 3.1.3)
+ actionmailer (3.1.8)
+ actionpack (= 3.1.8)
+ mail (~> 2.3.3)
+ actionpack (3.1.8)
+ activemodel (= 3.1.8)
+ activesupport (= 3.1.8)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.6)
- rack (~> 1.3.5)
- rack-cache (~> 1.1)
+ rack (~> 1.3.6)
+ rack-cache (~> 1.2)
rack-mount (~> 0.8.2)
rack-test (~> 0.6.1)
- sprockets (~> 2.0.3)
- activemodel (3.1.3)
- activesupport (= 3.1.3)
+ sprockets (~> 2.0.4)
+ activemodel (3.1.8)
+ activesupport (= 3.1.8)
builder (~> 3.0.0)
i18n (~> 0.6)
- activerecord (3.1.3)
- activemodel (= 3.1.3)
- activesupport (= 3.1.3)
- arel (~> 2.2.1)
+ activerecord (3.1.8)
+ activemodel (= 3.1.8)
+ activesupport (= 3.1.8)
+ arel (~> 2.2.3)
tzinfo (~> 0.3.29)
- activeresource (3.1.3)
- activemodel (= 3.1.3)
- activesupport (= 3.1.3)
- activesupport (3.1.3)
- multi_json (~> 1.0)
+ activeresource (3.1.8)
+ activemodel (= 3.1.8)
+ activesupport (= 3.1.8)
+ activesupport (3.1.8)
+ multi_json (>= 1.0, < 1.3)
+ addressable (2.3.2)
archive-tar-minitar (0.5.2)
- arel (2.2.1)
+ arel (2.2.3)
bcrypt-ruby (3.0.1)
- bson (1.5.2)
- bson_ext (1.5.2)
- bson (= 1.5.2)
- builder (3.0.0)
- capybara (1.1.2)
+ bson (1.8.0)
+ activesupport
+ bson_ext (1.8.0)
+ bson (~> 1.8.0)
+ builder (3.0.4)
+ capybara (2.0.1)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (~> 2.0)
- xpath (~> 0.1.4)
- childprocess (0.2.5)
- ffi (~> 1.0.6)
+ xpath (~> 1.0.0)
+ childprocess (0.3.6)
+ ffi (~> 1.0, >= 1.0.6)
+ coderay (1.0.8)
coffee-rails (3.1.1)
coffee-script (>= 2.2.0)
railties (~> 3.1.0)
coffee-script (2.2.0)
coffee-script-source
execjs
- coffee-script-source (1.2.0)
+ coffee-script-source (1.4.0)
columnize (0.3.6)
- database_cleaner (0.7.0)
- devise (1.5.3)
+ database_cleaner (0.9.1)
+ devise (2.1.2)
bcrypt-ruby (~> 3.0)
- orm_adapter (~> 0.0.3)
- warden (~> 1.1)
+ orm_adapter (~> 0.1)
+ railties (~> 3.1)
+ warden (~> 1.2.1)
diff-lcs (1.1.3)
erubis (2.7.0)
- execjs (1.2.13)
+ execjs (1.4.0)
multi_json (~> 1.0)
- factory_girl (2.3.2)
- activesupport
- factory_girl_rails (1.4.0)
- factory_girl (~> 2.3.0)
+ factory_girl (4.1.0)
+ activesupport (>= 3.0.0)
+ factory_girl_rails (4.1.0)
+ factory_girl (~> 4.1.0)
railties (>= 3.0.0)
- ffi (1.0.11)
+ ffi (1.2.0)
growl (1.0.3)
- guard (0.10.0)
- ffi (>= 0.5.0)
- thor (~> 0.14.6)
- guard-rspec (0.6.0)
- guard (>= 0.10.0)
- guard-spork (0.5.0)
- guard (>= 0.10.0)
+ guard (1.6.1)
+ listen (>= 0.6.0)
+ lumberjack (>= 1.0.2)
+ pry (>= 0.9.10)
+ thor (>= 0.14.6)
+ guard-rspec (2.3.3)
+ guard (>= 1.1)
+ rspec (~> 2.11)
+ guard-spork (1.4.0)
+ childprocess (>= 0.2.3)
+ guard (>= 1.1)
spork (>= 0.8.4)
- haml (3.1.4)
- haml-rails (0.3.4)
- actionpack (~> 3.0)
- activesupport (~> 3.0)
- haml (~> 3.0)
- railties (~> 3.0)
+ haml (3.1.7)
+ haml-rails (0.3.5)
+ actionpack (>= 3.1, < 4.1)
+ activesupport (>= 3.1, < 4.1)
+ haml (~> 3.1)
+ railties (>= 3.1, < 4.1)
hike (1.2.1)
- hirb (0.6.0)
+ hirb (0.7.0)
hirb-unicode (0.0.5)
hirb (~> 0.5)
unicode-display_width (~> 0.1.1)
- i18n (0.6.0)
- jquery-rails (1.0.19)
- railties (~> 3.0)
- thor (~> 0.14)
- json (1.6.4)
+ i18n (0.6.1)
+ jquery-rails (2.1.4)
+ railties (>= 3.0, < 5.0)
+ thor (>= 0.14, < 2.0)
+ json (1.7.6)
+ libwebsocket (0.1.7.1)
+ addressable
+ websocket
linecache19 (0.5.12)
ruby_core_source (>= 0.1.4)
- mail (2.3.0)
+ listen (0.7.0)
+ lumberjack (1.0.2)
+ mail (2.3.3)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
- mime-types (1.17.2)
- mongo (1.5.2)
- bson (= 1.5.2)
- mongoid (2.4.0)
+ method_source (0.8.1)
+ mime-types (1.19)
+ mongo (1.8.0)
+ bson (~> 1.8.0)
+ mongoid (2.5.1)
activemodel (~> 3.1)
- mongo (~> 1.3)
+ mongo (~> 1.7)
tzinfo (~> 0.3.22)
- mongoid-rspec (1.4.4)
- mongoid (~> 2.0)
- rspec (~> 2)
- mongoid-tree (0.6.2)
+ mongoid-rspec (1.4.5)
+ mongoid (>= 2.4.6)
+ rake
+ rspec (>= 2.9)
+ mongoid-tree (0.7.0)
mongoid (~> 2.0)
- multi_json (1.0.4)
- nokogiri (1.5.0)
- orm_adapter (0.0.5)
+ multi_json (1.2.0)
+ nokogiri (1.5.6)
+ orm_adapter (0.4.0)
polyglot (0.3.3)
+ pry (0.9.10)
+ coderay (~> 1.0.5)
+ method_source (~> 0.8)
+ slop (~> 3.3.1)
rack (1.3.6)
- rack-cache (1.1)
+ rack-cache (1.2)
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack-ssl (1.3.2)
rack
- rack-test (0.6.1)
+ rack-test (0.6.2)
rack (>= 1.0)
- rails (3.1.3)
- actionmailer (= 3.1.3)
- actionpack (= 3.1.3)
- activerecord (= 3.1.3)
- activeresource (= 3.1.3)
- activesupport (= 3.1.3)
+ rails (3.1.8)
+ actionmailer (= 3.1.8)
+ actionpack (= 3.1.8)
+ activerecord (= 3.1.8)
+ activeresource (= 3.1.8)
+ activesupport (= 3.1.8)
bundler (~> 1.0)
- railties (= 3.1.3)
- railties (3.1.3)
- actionpack (= 3.1.3)
- activesupport (= 3.1.3)
+ railties (= 3.1.8)
+ railties (3.1.8)
+ actionpack (= 3.1.8)
+ activesupport (= 3.1.8)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
- rake (0.9.2.2)
- rb-fsevent (0.4.3.1)
+ rake (10.0.3)
+ rb-fsevent (0.9.2)
rdoc (3.12)
json (~> 1.4)
- rspec (2.8.0)
- rspec-core (~> 2.8.0)
- rspec-expectations (~> 2.8.0)
- rspec-mocks (~> 2.8.0)
- rspec-core (2.8.0)
- rspec-expectations (2.8.0)
- diff-lcs (~> 1.1.2)
- rspec-mocks (2.8.0)
- rspec-rails (2.8.1)
+ rspec (2.12.0)
+ rspec-core (~> 2.12.0)
+ rspec-expectations (~> 2.12.0)
+ rspec-mocks (~> 2.12.0)
+ rspec-core (2.12.2)
+ rspec-expectations (2.12.1)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.12.1)
+ rspec-rails (2.12.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
- rspec (~> 2.8.0)
+ rspec-core (~> 2.12.0)
+ rspec-expectations (~> 2.12.0)
+ rspec-mocks (~> 2.12.0)
ruby-debug-base19 (0.11.25)
columnize (>= 0.3.1)
linecache19 (>= 0.5.11)
@@ -166,40 +187,42 @@ GEM
ruby-debug-base19 (>= 0.11.19)
ruby_core_source (0.1.5)
archive-tar-minitar (>= 0.5.2)
- rubyzip (0.9.5)
- sass (3.1.12)
- sass-rails (3.1.5)
+ rubyzip (0.9.9)
+ sass (3.2.4)
+ sass-rails (3.1.6)
actionpack (~> 3.1.0)
railties (~> 3.1.0)
- sass (~> 3.1.10)
+ sass (>= 3.1.10)
tilt (~> 1.3.2)
- selenium-webdriver (2.16.0)
+ selenium-webdriver (2.27.2)
childprocess (>= 0.2.5)
- ffi (~> 1.0.9)
- multi_json (~> 1.0.4)
+ libwebsocket (~> 0.1.3)
+ multi_json (~> 1.0)
rubyzip
- spork (0.9.0.rc9)
- sprockets (2.0.3)
+ slop (3.3.3)
+ spork (0.9.2)
+ sprockets (2.0.4)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
thor (0.14.6)
tilt (1.3.3)
- treetop (1.4.10)
+ treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
- tzinfo (0.3.31)
- uglifier (1.2.1)
+ tzinfo (0.3.35)
+ uglifier (1.3.0)
execjs (>= 0.3.0)
- multi_json (>= 1.0.2)
+ multi_json (~> 1.0, >= 1.0.2)
unicode-display_width (0.1.1)
- warden (1.1.0)
+ warden (1.2.1)
rack (>= 1.0)
webrat (0.7.3)
nokogiri (>= 1.2.0)
rack (>= 1.0)
rack-test (>= 0.5.3)
- xpath (0.1.4)
+ websocket (1.0.6)
+ xpath (1.0.0)
nokogiri (~> 1.3)
PLATFORMS
View
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
describe Action do
- let(:skill) { Factory :skill }
- let(:belonging) { Factory :belonging }
+ let(:skill) { FactoryGirl.create :skill }
+ let(:belonging) { FactoryGirl.create :belonging }
it 'SkillクラスがActionモジュールをインクルードしていること' do
skill.is_a?(Action).should be_true
end
View
@@ -2,10 +2,10 @@
describe Arms do
subject { Enemy }
- let(:character) { Factory :character, equip: Factory(:equip) }
- let(:enemy) { Factory :enemy }
- let(:sword) { Factory :belonging, item: Factory(:sword_item, speed: -1, add_dex: 1), character: character}
- let(:armor) { Factory :belonging, item: Factory(:armor_item, add_vit: 1), character: character}
+ let(:character) { FactoryGirl.create :character, equip: FactoryGirl.create(:equip) }
+ let(:enemy) { FactoryGirl.create :enemy }
+ let(:sword) { FactoryGirl.create :belonging, item: FactoryGirl.create(:sword_item, speed: -1, add_dex: 1), character: character}
+ let(:armor) { FactoryGirl.create :belonging, item: FactoryGirl.create(:armor_item, add_vit: 1), character: character}
before do
sword.equip
armor.equip
@@ -63,17 +63,17 @@
end
context 'Actionをセットできること' do
- let(:skill) { Factory :skill }
+ let(:skill) { FactoryGirl.create :skill }
before do
- character.assigned_skills << Factory(:assigned_skill, skill: skill)
+ character.assigned_skills << FactoryGirl.create(:assigned_skill, skill: skill)
character.action = skill
enemy.action = skill
end
it { character.action.should eq skill }
it { enemy.action.should eq skill}
context 'Actionではないものをセットしたとき' do
it '例外が発生すること' do
- expect { character.action = Factory :item }.to raise_error
+ expect { character.action = FactoryGirl.create :item }.to raise_error
end
end
end
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-
describe Eretheal::Formula do
- let(:character) { Factory :character, equip: Factory(:equip) }
- let(:enemy) { Factory :enemy }
- let(:sword) { Factory :belonging, item: Factory(:sword_item, speed: -1, add_dex: 1), character: character}
- let(:armor) { Factory :belonging, item: Factory(:armor_item, add_vit: 1), character: character}
+ let(:character) { FactoryGirl.create :character, equip: FactoryGirl.create(:equip) }
+ let(:enemy) { FactoryGirl.create :enemy }
+ let(:sword) { FactoryGirl.create :belonging, item: FactoryGirl.create(:sword_item, speed: -1, add_dex: 1), character: character}
+ let(:armor) { FactoryGirl.create :belonging, item: FactoryGirl.create(:armor_item, add_vit: 1), character: character}
before do
sword.equip
armor.equip
Oops, something went wrong.

0 comments on commit b4402b8

Please sign in to comment.