Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.436 kb
require 'spec_helper'
describe BPM::Credentials do
def new_creds
BPM::Credentials.new
end
around do |example|
cd(home)
LibGems.send(:set_home, home)
example.call
LibGems.clear_paths
end
subject { new_creds }
it "saves the api key and email" do
subject.save("someone@example.com", "secrets")
new_creds.api_key.should == "secrets"
new_creds.email.should == "someone@example.com"
end
end
Jump to Line
Something went wrong with that request. Please try again.