Sha256: a066e0c5bebcc1288fdbdeade8f5c2747728b7964835554e9eabad17f36298b5

Contents?: true

Size: 587 Bytes

Versions: 13

Compression:

Stored size: 587 Bytes

Contents

When /^I check the "(.*?)"$/ do |name|
  on(MainScreen).send "#{name.to_field}=", true
end

When /^I uncheck the "(.*?)"$/ do |name|
  on(MainScreen).send "#{name.to_field}=", false
end

Then /^the "(.*?)" should be checked$/ do |name|
  on(MainScreen).send("#{name.to_field}").should be_true
end

Then /^the "(.*?)" should not be checked$/ do |name|
  on(MainScreen).send("#{name.to_field}").should be_false
end

Then /^I know that the "(.*?)" value is "(.*?)"$/ do |name, expected_value|
  on(MainScreen).send("#{name.to_field}_value").should eq(expected_value)
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mohawk-0.2.1 features/step_definitions/checkbox_steps.rb
mohawk-0.2 features/step_definitions/checkbox_steps.rb
mohawk-0.1.4 features/step_definitions/checkbox_steps.rb
mohawk-0.1.0 features/step_definitions/checkbox_steps.rb
mohawk-0.0.9 features/step_definitions/checkbox_steps.rb
mohawk-0.0.8 features/step_definitions/checkbox_steps.rb
mohawk-0.0.7 features/step_definitions/checkbox_steps.rb
mohawk-0.0.6 features/step_definitions/checkbox_steps.rb
mohawk-0.0.5 features/step_definitions/checkbox_steps.rb
mohawk-0.0.4 features/step_definitions/checkbox_steps.rb
mohawk-0.0.3 features/step_definitions/checkbox_steps.rb
mohawk-0.0.2 features/step_definitions/checkbox_steps.rb
mohawk-0.0.1 features/step_definitions/checkbox_steps.rb