diff options
| author | Alban Peignier | 2017-12-20 21:06:41 +0100 |
|---|---|---|
| committer | Alban Peignier | 2017-12-20 21:06:41 +0100 |
| commit | 3305dca57e2e0a46b583f183040a82819ffd6efb (patch) | |
| tree | 358a79ad601104753b9cbf276a8881d463bedf1f /spec | |
| parent | 736d9e51c59d5bcf3966fc059fbe1dd5e2e47c69 (diff) | |
| download | chouette-core-3305dca57e2e0a46b583f183040a82819ffd6efb.tar.bz2 | |
Improve styles in FeatureCheck code. Refs #5339
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/controllers/concerns/feature_checker_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/concerns/feature_checker_spec.rb b/spec/controllers/concerns/feature_checker_spec.rb index 0ffee0dfd..50b21954f 100644 --- a/spec/controllers/concerns/feature_checker_spec.rb +++ b/spec/controllers/concerns/feature_checker_spec.rb @@ -6,8 +6,8 @@ RSpec.describe "FeatureChecker", type: :controller do include FeatureChecker requires_feature :test, only: :protected - def protected; render :text => "protected"; end - def not_protected; render :text => "not protected"; end + def protected; render text: "protected"; end + def not_protected; render text: "not protected"; end def current_organisation @organisation ||= Organisation.new @@ -21,7 +21,7 @@ RSpec.describe "FeatureChecker", type: :controller do end end - it "refuse access when organisation has not the feature" do + it "refuse access when organisation does not have the feature" do expect{ get(:protected) }.to raise_error(FeatureChecker::NotAuthorizedError) end |
