Merge branch '2.3_branch'

This brings the master branch up to date with the 2.3 release branch
This commit is contained in:
Matt Rogers 2015-08-07 20:27:14 -04:00
commit f393afb69f
27 changed files with 111 additions and 84 deletions

View file

@ -54,6 +54,7 @@ When /^I edit the context name in place to be "([^\"]*)"$/ do |new_context_name|
page.find("span#context_name").click
fill_in "value", :with => new_context_name
click_button "Ok"
wait_for_ajax
end
Then /^I should see the context name is "([^\"]*)"$/ do |context_name|

View file

@ -123,13 +123,13 @@ end
Then /^the project "([^"]*)" should have (\d+) actions listed$/ do |project_name, count|
project = @current_user.projects.where(:name => project_name).first
expect(project).to_not be_nil
xpath = "//div[@id='list-active-projects-container']//div[@id='project_#{project.id}']//span[@class='needsreview']"
xpath = "//div[@id='list-active-projects-container']//div[@id='project_#{project.id}']"
expect(page.find(:xpath, xpath).text).to eq("#{project.name} (#{count} actions)")
end
Then /^the project "([^"]*)" should have (\d+) deferred actions listed$/ do |project_name, deferred|
project = @current_user.projects.where(:name => project_name).first
expect(project).to_not be_nil
xpath = "//div[@id='list-active-projects-container']//div[@id='project_#{project.id}']//span[@class='needsreview']"
xpath = "//div[@id='list-active-projects-container']//div[@id='project_#{project.id}']"
expect(page.find(:xpath, xpath).text).to eq("#{project.name} (#{deferred} deferred actions)")
end

View file

@ -119,6 +119,11 @@ Then /^the project field of the new todo form should contain "([^"]*)"$/ do |pro
expect(page.find(:xpath, xpath).value).to eq(project_name)
end
Then /^the context field of the new todo form should contain "([^"]*)"$/ do |context_name|
xpath= "//form[@id='todo-form-new-action']/input[@id='todo_context_name']"
expect(page.find(:xpath, xpath).value).to eq(context_name)
end
Then /^the default context of the new todo form should be "([^"]*)"$/ do |context_name|
xpath= "//form[@id='todo-form-new-action']/input[@id='todo_context_name']"
expect(context_name).to eq(page.find(:xpath, xpath).value)