diff --git a/features/mezuro_range/create.feature b/features/mezuro_range/create.feature index 5c9bc93..a9d2360 100644 --- a/features/mezuro_range/create.feature +++ b/features/mezuro_range/create.feature @@ -51,7 +51,6 @@ Feature: Create range And I should see "You must have readings in your associated reading group to create a new range." When I click the Create New Reading link Then I should be at the New Reading page - And I take a picture of the page And I should see "Label" And I should see "Grade" And I should see "Color" diff --git a/spec/controllers/metric_configurations_controller_spec.rb b/spec/controllers/metric_configurations_controller_spec.rb index 5d5dddf..e8091e9 100644 --- a/spec/controllers/metric_configurations_controller_spec.rb +++ b/spec/controllers/metric_configurations_controller_spec.rb @@ -88,9 +88,13 @@ describe MetricConfigurationsController do describe 'show' do let(:metric_configuration) { FactoryGirl.build(:metric_configuration) } let(:reading_group) { FactoryGirl.build(:reading_group) } + let(:mezuro_range) { FactoryGirl.build(:mezuro_range) } + before :each do ReadingGroup.expects(:find).with(metric_configuration.reading_group_id).returns(reading_group) MetricConfiguration.expects(:find).with(metric_configuration.id).returns(metric_configuration) + MezuroRange.expects(:ranges_of).with(metric_configuration.id).returns([mezuro_range]) + get :show, mezuro_configuration_id: metric_configuration.configuration_id.to_s, id: metric_configuration.id end -- libgit2 0.21.2