-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changing find to not use instance variables from the class it is incl…
…uded in.
- Loading branch information
1 parent
93ed55d
commit 6f9d491
Showing
4 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
require 'spec_helper' | ||
|
||
describe Tankard::Api::Utils::Find do | ||
|
||
let(:find) { Class.new { include Tankard::Api::Utils::Find }.new } | ||
|
||
describe "#route" do | ||
|
||
it "raises NoMethodError" do | ||
expect { find.send(:route) }.to raise_error(NoMethodError, "Must implement and return the base route") | ||
end | ||
end | ||
|
||
describe "#http_client" do | ||
|
||
it "raises NoMethodError" do | ||
expect { find.send(:http_client) }.to raise_error(NoMethodError, "Must return the http object to make requests with") | ||
end | ||
end | ||
|
||
describe "#http_request_parameters" do | ||
|
||
it "raises NoMethodError" do | ||
expect { find.send(:http_request_parameters) }.to raise_error(NoMethodError, "Must return a hash like structure with request parameters") | ||
end | ||
end | ||
end |