spec/mailstro/configuration_spec.rb in mailstro-0.0.3 vs spec/mailstro/configuration_spec.rb in mailstro-0.0.4
- old
+ new
@@ -1,17 +1,17 @@
require 'spec_helper'
describe Mailstro::Configuration do
subject(:configuration) { Mailstro::Configuration.new }
- it "has a default endpoint" do
- configuration.endpoint.should =~ /mailstro/
+ it "has a default api endpoint" do
+ configuration.api_endpoint.should == "https://api.mailstroapp.com/v1"
end
describe "#validate!" do
it "raises an error if an api_key is nil" do
expect {
subject.validate!
- }.to raise_error(Mailstro::ConfigurationError)
+ }.to raise_error(Mailstro::Error::ConfigurationError)
end
end
end