spec/trakio/initialize_spec.rb in trakio-ruby-0.1.3 vs spec/trakio/initialize_spec.rb in trakio-ruby-0.1.4
- old
+ new
@@ -6,11 +6,11 @@
after {
Trakio.default_instance = nil
}
- describe '.initialize' do
+ describe '#initialize' do
context "when an API token is provided" do
it "creates a new Trakio instance" do
expect(Trakio.new "my_api_token").to be_a Trakio
@@ -37,17 +37,17 @@
end
context "when a https option is provided" do
it "sets https option" do
trakio = Trakio.new 'my_api_token', https: false
- expect(trakio.https).to be_false
+ expect(trakio.https).to be false
end
end
context "when a https option isn't provided" do
it "defaults to true" do
trakio = Trakio.new 'my_api_token'
- expect(trakio.https).to be_true
+ expect(trakio.https).to be true
end
end
context "when a host is provided" do
it "sets host option" do
\ No newline at end of file