3. 2009 -
Model by AR or Ruby RSpec on Rails
Controller by AC RSpec on Rails
View by Haml or ..
RSpec on Rails
(many)
Helper by AV or .. RSpec on Rails
2009-01-24 Ruby 01
2009 11 2
19. # Order is opposite from original (English) version
When /^"([^"]*)" "([^"]*)" $/ do |parent, link|
When %Q(I follow "#{link}" within "#{parent}")
end
When /^"([^"]*)" "([^"]*)" $/ do |field, value|
When %Q(I fill in "#{field}" with "#{value}")
end
http://github.com/moro/miso/blob/master/rails_generators/miso/templates/webrat_ja_steps.rb
2009 11 2
24. describe DeltaAttack::FiletypeAssumption do
include SpecHelper
it "should not support_magic" do
DeltaAttack::FiletypeAssumption.should_not be_support_magic
end
describe "new('hoge.xls')" do
before do
@asm = DeltaAttack::FiletypeAssumption.new('hoge.xls')
end
it "filetype.should == :excel" do
@asm.filetype.should == :excel
end
end
end
http://github.com/moro/delta_attack/blob/master/spec/filetype_assumption_spec.rb
2009 11 2
39. 2009 -
Model by AR or Ruby RSpec on Rails
Controller by AC RSpec on Rails
View by Haml or ..
RSpec on Rails
(many)
Helper by AV or .. RSpec on Rails
2009-01-24 Ruby 01
2009 11 2