spec/statrapator/client/projects_spec.rb in statraptor-0.2.0 vs spec/statrapator/client/projects_spec.rb in statraptor-0.2.1
- old
+ new
@@ -3,11 +3,11 @@
describe StatRaptor::Client::Projects do
let(:client) { StatRaptor::Client.new }
context "#create_project", :vcr do
before do
- @user = client.create_user(:email => "tommy@example.com", :chargify_api_key => "ABC123")
+ @user = client.create_user(:email => random_email, :chargify_api_key => "ABC123")
@user["user_credentials"].should_not be_nil
end
it "returns a project hash on success" do
project = client.create_project(:user_credentials => @user["user_credentials"], :project => {
@@ -20,10 +20,10 @@
end
end
context "#delete_project", :vcr do
it "returns the project hash on success" do
- user = client.create_user(:email => "sammy@example.com", :chargify_api_key => "ABC123")
+ user = client.create_user(:email => random_email, :chargify_api_key => "ABC123")
project = client.create_project(:user_credentials => user["user_credentials"], :project => {
:name => "Modern Marvels", :subdomain => "modern-marvels", :component => "advanced"
})
deleted_project = client.delete_project(:user_credentials => user["user_credentials"], :subdomain => "modern-marvels")