Skip to content

Commit

Permalink
fix response spec
Browse files Browse the repository at this point in the history
  • Loading branch information
aklaiber committed Jun 26, 2014
1 parent c52d300 commit 9a7e771
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions rgcm.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
spec.email = ["[email protected]"]
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")
Expand All @@ -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"
Expand Down
12 changes: 6 additions & 6 deletions spec/rgcm/response_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 9a7e771

Please sign in to comment.