Commit f47957d5e57039cad7d44e52d7fdf65c66d4f9e4
1 parent
31f6c584
Exists in
colab
and in
4 other branches
Fixed acceptance tests.
When building range factory. signed-off-by: Renan Fichberg <rfichberg@gmail.com>
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
features/step_definitions/repository_steps.rb
| 1 | 1 | Given(/^I have a sample configuration with native metrics$/) do |
| 2 | 2 | reading_group = FactoryGirl.create(:reading_group, id: nil) |
| 3 | 3 | reading = FactoryGirl.create(:reading, {id: nil, group_id: reading_group.id}) |
| 4 | - range = FactoryGirl.build(:range, {id: nil, reading_id: reading.id, beginning: '-INF', :end => '+INF'}) | |
| 5 | 4 | @configuration = FactoryGirl.create(:mezuro_configuration, id: nil) |
| 6 | 5 | metric_configuration = FactoryGirl.create(:metric_configuration, |
| 7 | 6 | {id: nil, |
| 8 | 7 | metric: FactoryGirl.build(:loc), |
| 9 | 8 | reading_group_id: reading_group.id, |
| 10 | 9 | configuration_id: @configuration.id}) |
| 11 | - range.save metric_configuration.id | |
| 10 | + range = FactoryGirl.build(:range, {id: nil, reading_id: reading.id, beginning: '-INF', :end => '+INF', metric_configuration_id: metric_configuration.id}) | |
| 11 | + range.save | |
| 12 | 12 | end |
| 13 | 13 | |
| 14 | 14 | Given(/^I have a sample repository within the sample project$/) do |
| ... | ... | @@ -150,4 +150,4 @@ Then(/^"(.*?)" should be less than "(.*?)"$/) do |arg1, arg2| |
| 150 | 150 | v1 = eval "@#{arg1}" |
| 151 | 151 | v2 = eval "@#{arg2}" |
| 152 | 152 | (v1 < v2).should be_true |
| 153 | -end | |
| 154 | 153 | \ No newline at end of file |
| 154 | +end | ... | ... |