From 9a7e7717bc7f1e90c5c809789c475f6e2652f544 Mon Sep 17 00:00:00 2001 From: Alexander Klaiber Date: Thu, 26 Jun 2014 11:17:06 +0200 Subject: [PATCH] fix response spec --- rgcm.gemspec | 4 ++-- spec/rgcm/response_spec.rb | 12 ++++++------ spec/spec_helper.rb | 2 -- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/rgcm.gemspec b/rgcm.gemspec index b3741ea..9c0ee1a 100644 --- a/rgcm.gemspec +++ b/rgcm.gemspec @@ -10,7 +10,7 @@ Gem::Specification.new do |spec| spec.email = ["alex.klaiber@gmail.com"] spec.summary = "Google Cloud Messaging" spec.description = "Google Cloud Messaging" - spec.homepage = "" + spec.homepage = "https://github.com/aklaiber/rgcm" spec.license = "MIT" spec.files = `git ls-files -z`.split("\x0") @@ -20,7 +20,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency "bundler", "~> 1.5" spec.add_development_dependency "rake" - spec.add_development_dependency "rspec" + spec.add_development_dependency "rspec", "~> 3.0.0" spec.add_dependency "activesupport" spec.add_dependency "typhoeus" diff --git a/spec/rgcm/response_spec.rb b/spec/rgcm/response_spec.rb index 07c2435..7f447b4 100644 --- a/spec/rgcm/response_spec.rb +++ b/spec/rgcm/response_spec.rb @@ -6,10 +6,10 @@ context 'with successfully response' do let(:json) { File.open("#{FIXTURES_PATH}/responses/successfully.json").read } it '#has_successes?' do - expect(response.has_successes?).to be_true + expect(response.has_successes?).to be true end it '#has_failures?' do - expect(response.has_failures?).to be_false + expect(response.has_failures?).to be false end it '#count_successes' do expect(response.count_successes).to eql(1) @@ -22,10 +22,10 @@ context 'with failure response' do let(:json) { File.open("#{FIXTURES_PATH}/responses/failure.json").read } it '#has_successes?' do - expect(response.has_successes?).to be_false + expect(response.has_successes?).to be false end it '#has_failures?' do - expect(response.has_failures?).to be_true + expect(response.has_failures?).to be true end it '#count_successes' do expect(response.count_successes).to eql(0) @@ -41,10 +41,10 @@ context 'with failure response' do let(:json) { File.open("#{FIXTURES_PATH}/responses/multi.json").read } it '#has_successes?' do - expect(response.has_successes?).to be_true + expect(response.has_successes?).to be true end it '#has_failures?' do - expect(response.has_failures?).to be_true + expect(response.has_failures?).to be true end it '#count_successes' do expect(response.count_successes).to eql(3) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ad7b92f..3260481 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,11 +1,9 @@ require 'support/json_helper' - require 'rgcm' FIXTURES_PATH = "#{File.dirname(__FILE__)}/fixtures" RSpec.configure do |config| - config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.filter_run :focus config.order = 'random'