From 13036cb878337827009872ccf687e6437e01e13b Mon Sep 17 00:00:00 2001 From: Antek Drzewiecki Date: Wed, 14 Jan 2015 17:37:25 +0100 Subject: [PATCH] changed non mutable strings double quotes to single quoutes. --- .travis.yml | 2 +- Gemfile | 4 +--- spec/lib/wine_bouncer/auth_methods/auth_methods_spec.rb | 2 +- spec/lib/wine_bouncer/auth_strategies/default_spec.rb | 4 ++-- spec/rails_helper.rb | 4 ++-- 5 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index f348db1..f515f6a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,4 +15,4 @@ env: - rails=4.1.1 grape=0.9.0 addons: code_climate: - repo_token: ab1b6ce5f973da033f80ae2e99fadbb32b2f9c37892703956d8ef954c8e8134e + repo_token: g diff --git a/Gemfile b/Gemfile index ce09424..460c95b 100644 --- a/Gemfile +++ b/Gemfile @@ -10,9 +10,7 @@ gem 'activerecord' gem 'grape', ENV['grape'] gem 'doorkeeper', ENV['doorkeeper'] -gem "codeclimate-test-reporter", group: :test, require: nil +gem 'codeclimate-test-reporter', group: :test, require: nil # Specify your gem's dependencies in wine_bouncer.gemspec gemspec - - diff --git a/spec/lib/wine_bouncer/auth_methods/auth_methods_spec.rb b/spec/lib/wine_bouncer/auth_methods/auth_methods_spec.rb index fddda11..153982a 100644 --- a/spec/lib/wine_bouncer/auth_methods/auth_methods_spec.rb +++ b/spec/lib/wine_bouncer/auth_methods/auth_methods_spec.rb @@ -1,4 +1,4 @@ -require 'spec_helper' +require 'rails_helper' describe ::WineBouncer::AuthMethods do diff --git a/spec/lib/wine_bouncer/auth_strategies/default_spec.rb b/spec/lib/wine_bouncer/auth_strategies/default_spec.rb index 0b88872..0f2598b 100644 --- a/spec/lib/wine_bouncer/auth_strategies/default_spec.rb +++ b/spec/lib/wine_bouncer/auth_strategies/default_spec.rb @@ -1,10 +1,10 @@ -require 'spec_helper' +require 'rails_helper' require 'wine_bouncer/auth_strategies/default' describe ::WineBouncer::AuthStrategies::Default do subject(:klass) { ::WineBouncer::AuthStrategies::Default.new } - let(:scopes) { [ 'public', 'private' ] } + let(:scopes) { %w(public private) } let(:scopes_hash) { { scopes: scopes } } let(:auth_context) { { auth: scopes_hash } } diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index c0edc99..155d2a2 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,8 +1,8 @@ # This file is copied to spec/ when you run 'rails generate rspec:install' -ENV["RAILS_ENV"] ||= 'test' +ENV['RAILS_ENV'] ||= 'test' ORM = (ENV['orm'] || :active_record).to_sym require 'spec_helper' -require File.expand_path("../dummy/config/environment", __FILE__) +require File.expand_path('../dummy/config/environment', __FILE__) require 'rspec/rails' require 'wine_bouncer' require 'factory_girl'