mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-10 01:24:19 +01:00
finish migration of the feeds page
This commit is contained in:
parent
51106d015e
commit
2fa431ef54
14 changed files with 205 additions and 128 deletions
31
features/step_definitions/feedlist_steps.rb
Normal file
31
features/step_definitions/feedlist_steps.rb
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
Then /^I should see a message that you need a context to get feeds for contexts$/ do
|
||||
Then "I should see \"There need to be at least one context before you can request a feed\""
|
||||
end
|
||||
|
||||
Then /^I should see a message that you need a project to get feeds for projects$/ do
|
||||
Then "I should see \"There need to be at least one project before you can request a feed\""
|
||||
end
|
||||
|
||||
Then /^I should see feeds for projects$/ do
|
||||
within 'select[id="feed-projects"]' do |scope|
|
||||
scope.should have_selector("option[value=\"#{@current_user.projects.first.id}\"]")
|
||||
end
|
||||
end
|
||||
|
||||
Then /^I should see feeds for contexts$/ do
|
||||
within 'select[id="feed-contexts"]' do |scope|
|
||||
scope.should have_selector("option[value=\"#{@current_user.contexts.first.id}\"]")
|
||||
end
|
||||
end
|
||||
|
||||
Then /^I should see "([^"]*)" as the selected project$/ do |project_name|
|
||||
within 'select[id="feed-projects"]' do |scope|
|
||||
scope.should have_selector("option[selected=\"selected\"]", :content => project_name)
|
||||
end
|
||||
end
|
||||
|
||||
Then /^I should see "([^"]*)" as the selected context$/ do |context_name|
|
||||
within 'select[id="feed-contexts"]' do |scope|
|
||||
scope.should have_selector("option[selected=\"selected\"]", :content => context_name)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue