Skip to content

Commit

Permalink
Merge 82f1f21 into 4096286
Browse files Browse the repository at this point in the history
  • Loading branch information
marysieek committed May 5, 2020
2 parents 4096286 + 82f1f21 commit 75c231d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2017 Castle
Copyright (c) 2020 Castle

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions session_spec.rb → spec/lib/castle/api/session_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
end

describe '#initialize' do
subject(:session) { described_class.instance.session }
subject(:session) { described_class.get }

after do
Castle::API::Session.reset
described_class.instance.reset
end

context 'when ssl false' do
before do
Castle.config.host = 'localhost'
Castle.config.port = 3002
described_class.instance.setup
described_class.instance.reset
end

after do
Expand All @@ -34,7 +34,7 @@

context 'when ssl true' do
before do
described_class.instance.setup
described_class.instance.reset
end

it { expect(session).to be_instance_of(Net::HTTP) }
Expand Down

0 comments on commit 75c231d

Please sign in to comment.