Commit 5625d942c058f8170ac8769238d2cdc955f8bfb7
Committed by
Rafael Manzo
1 parent
ba8f644b
Exists in
colab
and in
4 other branches
Fixed acceptance tests.
Signed-of By: Renan Fichberg <rfichberg@gmail.com>
Showing
3 changed files
with
10 additions
and
2 deletions
Show diff stats
features/reading/edit.feature
| ... | ... | @@ -19,7 +19,7 @@ Feature: Reading Edit |
| 19 | 19 | And I should see "10.5" |
| 20 | 20 | And I should see "33dd33" |
| 21 | 21 | |
| 22 | - @kalibro_restart @wip | |
| 22 | + @kalibro_restart | |
| 23 | 23 | Scenario: editing a reading with blank fields |
| 24 | 24 | Given I am a regular user |
| 25 | 25 | And I am signed in |
| ... | ... | @@ -34,7 +34,7 @@ Feature: Reading Edit |
| 34 | 34 | And I should see "Grade can't be blank" |
| 35 | 35 | And I should see "Color can't be blank" |
| 36 | 36 | |
| 37 | - @kalibro_restart @wip | |
| 37 | + @kalibro_restart | |
| 38 | 38 | Scenario: editing a reading with already taken name |
| 39 | 39 | Given I am a regular user |
| 40 | 40 | And I am signed in | ... | ... |
features/step_definitions/reading_group_steps.rb
| ... | ... | @@ -12,6 +12,10 @@ Given(/^I have a reading group named "(.*?)"$/) do |name| |
| 12 | 12 | @reading_group = FactoryGirl.create(:reading_group, {id: nil, name: name}) |
| 13 | 13 | end |
| 14 | 14 | |
| 15 | +Given(/^I have a sample reading within the sample reading group$/) do | |
| 16 | + @reading = FactoryGirl.create(:reading, {group_id: @reading_group.id, id: nil}) | |
| 17 | +end | |
| 18 | + | |
| 15 | 19 | Given(/^I own a sample reading group$/) do |
| 16 | 20 | @reading_group = FactoryGirl.create(:reading_group, {id: nil}) |
| 17 | 21 | FactoryGirl.create(:reading_group_ownership, {user_id: @user.id, reading_group_id: @reading_group.id}) | ... | ... |
features/step_definitions/reading_steps.rb
| ... | ... | @@ -10,6 +10,10 @@ Given(/^I am at the Edit Reading page$/) do |
| 10 | 10 | visit edit_reading_group_reading_url(@reading_group.id, @reading.id) |
| 11 | 11 | end |
| 12 | 12 | |
| 13 | +Given(/^I have a sample reading within the sample reading group labeled "(.*?)"$/) do |label| | |
| 14 | + @reading = FactoryGirl.create(:reading, {label: label, group_id: @reading_group.id, id: nil}) | |
| 15 | +end | |
| 16 | + | |
| 13 | 17 | Given(/^I have a sample reading within the module result labeled "(.*?)"$/) do |label| |
| 14 | 18 | @reading = FactoryGirl.create(:reading, {label: label, group_id: @reading_group.id, id: nil}) |
| 15 | 19 | end | ... | ... |