Sha256: 65c7e00110aa8724972282a651d7b17ad5257c7ee0041b84bd1e9b38927d56ec

Contents?: true

Size: 678 Bytes

Versions: 7

Compression:

Stored size: 678 Bytes

Contents

Given(/^we are looking at the about screen$/) do
  on(MainScreen).about
end

Then(/^we know that the currently selected tab is "([^"]*)"$/) do |expected_tab|
  on(AboutScreen).tab.should eq(expected_tab)
end

Then(/^we know that the available tabs are "([^"]*)"$/) do |tabs|
  on(AboutScreen).tab_items.should eq(tabs.split(', '))
end

When(/^we select the tab at index "([^"]*)"$/) do |tab_index|
  on(AboutScreen).tab = tab_index.to_i
end

When(/^we select the tab with the text "([^"]*)"$/) do |which|
  on(AboutScreen).tab = which
end

When(/^we select the tab with the regex "([^"]*)"$/) do |which_regex|
  on(AboutScreen).tab = /#{which_regex}/
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mohawk-0.2.1 features/step_definitions/tabs_steps.rb
mohawk-0.2 features/step_definitions/tabs_steps.rb
mohawk-0.1.4 features/step_definitions/tabs_steps.rb
mohawk-0.1.0 features/step_definitions/tabs_steps.rb
mohawk-0.0.9 features/step_definitions/tabs_steps.rb
mohawk-0.0.8 features/step_definitions/tabs_steps.rb
mohawk-0.0.7 features/step_definitions/tabs_steps.rb