Commit 5049884016c62a3c966fe7be80f1cdfc95745684
1 parent
c30eef93
Exists in
colab
and in
4 other branches
fixed indentation style for kalibro_configurations_controller_spec
Showing
1 changed file
with
7 additions
and
7 deletions
Show diff stats
spec/controllers/kalibro_configurations_controller_spec.rb
1 | 1 | require 'rails_helper' |
2 | 2 | |
3 | 3 | describe KalibroConfigurationsController, :type => :controller do |
4 | - | |
4 | + | |
5 | 5 | def post_method(method) |
6 | 6 | unless method == :create |
7 | 7 | post method, :id => kalibro_configuration.id, :kalibro_configuration => kalibro_configuration_params, :attributes => attributes |
... | ... | @@ -26,11 +26,11 @@ describe KalibroConfigurationsController, :type => :controller do |
26 | 26 | end |
27 | 27 | |
28 | 28 | context 'with valid fields' do |
29 | - let(:kalibro_configuration) { FactoryGirl.build(:kalibro_configuration, :with_id) } | |
30 | - let(:kalibro_configuration_params) { kalibro_configuration.to_hash } | |
31 | - let(:attributes) { {public: "1"} } | |
29 | + let(:kalibro_configuration) { FactoryGirl.build(:kalibro_configuration, :with_id) } | |
30 | + let(:kalibro_configuration_params) { kalibro_configuration.to_hash } | |
31 | + let(:attributes) { {public: "1"} } | |
32 | 32 | |
33 | - before :each do | |
33 | + before :each do | |
34 | 34 | KalibroConfiguration.any_instance.expects(:save).returns(true) |
35 | 35 | end |
36 | 36 | |
... | ... | @@ -69,8 +69,8 @@ describe KalibroConfigurationsController, :type => :controller do |
69 | 69 | end |
70 | 70 | |
71 | 71 | describe 'show' do |
72 | - let(:kalibro_configuration) { FactoryGirl.build(:kalibro_configuration, :with_id) } | |
73 | - let(:metric_configuration) { FactoryGirl.build(:metric_configuration_with_id) } | |
72 | + let(:kalibro_configuration) { FactoryGirl.build(:kalibro_configuration, :with_id) } | |
73 | + let(:metric_configuration) { FactoryGirl.build(:metric_configuration_with_id) } | |
74 | 74 | |
75 | 75 | before :each do |
76 | 76 | kalibro_configuration.expects(:metric_configurations).returns(metric_configuration) | ... | ... |