Skip to content

Commit

Permalink
Modify the test to suit the modification in the code implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
ChigboIO committed Jun 9, 2016
1 parent bc317ce commit a98e759
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/lib/zi_notification/connection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
RSpec.describe ZiNotification::Connection do
# NOTE If/when we want to switch adapter from Faraday, we only need to overide interfacing methods here
describe ".connection" do
subject { described_class.connection }
subject { described_class.connection('some.token') }

it { should be_an_instance_of Faraday::Connection }
end

Expand Down
2 changes: 1 addition & 1 deletion spec/services/token_manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

it 'sets the notification object' do
decoded = subject.decode(token)
expect(decoded.first['object']).to eql object
expect(decoded.first['payload']).to eql object
end
end
end
Expand Down

0 comments on commit a98e759

Please sign in to comment.