Sha256: b743d2da823cd9d3f5f0d9491c77317ec5b1ac710b45ba8ff057fb1b47ad1caa
Contents?: true
Size: 628 Bytes
Versions: 2
Compression:
Stored size: 628 Bytes
Contents
When "I define a Catwalk presenter class for my model" do |code| eval code end When "I set up my presenter for my model" do |code| eval code end Then "my presenter should expose the models ActiveModel functionality" do @presenter.to_key.should == @model.to_key @presenter.to_param.should == @model.to_param @presenter.valid?.should == @model.valid? @presenter.persisted?.should == @model.persisted? @presenter.errors.should == @model.errors @presenter.to_model.should == @model end Then /^my presenter should expose the model via "([^"]*)"$/ do |field_name| @presenter.send(field_name).should == @model end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
catwalk-0.0.3 | features/step_definitions/presenter_steps.rb |
catwalk-0.0.2 | features/step_definitions/presenter_steps.rb |