-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More work on develop command specs, removing VCR
- Loading branch information
Showing
14 changed files
with
114 additions
and
125 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
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
46 changes: 0 additions & 46 deletions
46
spec/fixtures/vcr/gitcycle_api_user/should_retrieve_user_information.yml
This file was deleted.
Oops, something went wrong.
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,23 +1,23 @@ | ||
require File.expand_path("../../spec_helper", __FILE__) | ||
# require File.expand_path("../../spec_helper", __FILE__) | ||
|
||
describe Gitcycle::Api do | ||
# describe Gitcycle::Api do | ||
|
||
let(:api) do | ||
Gitcycle::Config.config = config | ||
Gitcycle::Api | ||
end | ||
# let(:api) do | ||
# Gitcycle::Config.config = config | ||
# Gitcycle::Api | ||
# end | ||
|
||
describe "#user" do | ||
# describe "#user" do | ||
|
||
let(:user) { api.user } | ||
# let(:user) { api.user } | ||
|
||
it "should retrieve user information", :vcr do | ||
%w(gravatar login name).each do |key| | ||
user[key.to_sym].should be_a String | ||
end | ||
%w(created_at updated_at).each do |key| | ||
user[key.to_sym].should be_a Time | ||
end | ||
end | ||
end | ||
end | ||
# it "should retrieve user information", :vcr do | ||
# %w(gravatar login name).each do |key| | ||
# user[key.to_sym].should be_a String | ||
# end | ||
# %w(created_at updated_at).each do |key| | ||
# user[key.to_sym].should be_a Time | ||
# end | ||
# end | ||
# end | ||
# 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
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,30 @@ | ||
require File.expand_path("../../spec_helper", __FILE__) | ||
|
||
describe Gitcycle do | ||
|
||
describe "#develop" do | ||
|
||
let(:gitcycle) do | ||
Gitcycle::Config.config_path = config_path | ||
Gitcycle.new | ||
end | ||
|
||
it "should" do | ||
body = { | ||
:lighthouse_url => "https://test.lighthouseapp.com/projects/0000/tickets/0000-ticket", | ||
:source => "gitcycle_api2" | ||
} | ||
headers = { | ||
'Authorization' => 'Token token="8546f464"', | ||
'Content-Type' => 'application/x-www-form-urlencoded', | ||
'Host' => '127.0.0.1:3000', | ||
'User-Agent' => 'Faraday v0.8.8' | ||
} | ||
stub_request(:post, "http://127.0.0.1:3000/branch.json"). | ||
with(:body => body, :headers => headers). | ||
to_return(:status => 200, :body => "{}", :headers => {}) | ||
$stdin.stub!(:gets).and_return("y") | ||
gitcycle.branch("https://test.lighthouseapp.com/projects/0000/tickets/0000-ticket") | ||
end | ||
end | ||
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
Oops, something went wrong.