Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved shared_context blocks to their own file
Require shared_context and shared_examples files in helper for easier management
- Loading branch information
Showing
5 changed files
with
21 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
require 'helper' | ||
require 'shared_examples' | ||
|
||
describe Desk::Client do | ||
context "Article" do | ||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
require 'helper' | ||
require 'shared_examples' | ||
|
||
describe Desk::Client do | ||
context "Macro" do | ||
|
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,16 @@ | ||
shared_context "basic configuration" do | ||
subject(:client) { | ||
Desk::Client.new( | ||
:subdomain => "example", | ||
:consumer_key => 'CK', | ||
:consumer_secret => 'CS', | ||
:oauth_token => 'OT', | ||
:oauth_token_secret => 'OS' | ||
) | ||
} | ||
end | ||
|
||
shared_context "plural endpoint" do | ||
let(:endpoints) { "#{endpoint}s" } | ||
let(:sub_endpoints) { "#{sub_endpoint}s" } | ||
end |
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