require 'spec_helper' describe Mailstro::Configuration do subject(:configuration) { Mailstro::Configuration.new } 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::Error::ConfigurationError) end end end