Sha256: c888b1a851ba8d95995d79a9d124e75b78020dcd061a2a2513a42fae20be3cbb

Contents?: true

Size: 437 Bytes

Versions: 7

Compression:

Stored size: 437 Bytes

Contents

Given "I have a model defined as:" do |code|
  define_model code
end

When "I build my model from the form:" do |code|
  run_test code
end

Then /^my model should have a string for (\w+) "(\w+)"$/ do |field_name,field_data|
  access("@model").send(field_name).should == field_data
end

Then /^my model should have a date for ([^\s]+) `(.*)`$/ do |field_name,field_data|
  access("@model").send(field_name).should == eval(field_data)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pr-1.0.0 features/step_definitions/model_steps.rb
pr-0.0.7 features/step_definitions/model_steps.rb
pr-0.0.6 features/step_definitions/model_steps.rb
pr-0.0.5 features/step_definitions/model_steps.rb
pr-0.0.4 features/step_definitions/model_steps.rb
pr-0.0.3 features/step_definitions/model_steps.rb
pr-0.0.2 features/step_definitions/model_steps.rb