Sha256: 20b0a987e3e190b4b007cec9775f7b4d811c7fbe3462ce828c60908c2cf6af83
Contents?: true
Size: 685 Bytes
Versions: 10
Compression:
Stored size: 685 Bytes
Contents
require File.expand_path('spec/spec_helper') describe 'Config' do Shutl::Auth.config do |s| s.url = 'http://localhost:3001' s.client_id = 'asdf' s.client_secret = 'asdf' end it "has config for client_id and client_secret" do Shutl::Auth.client_id = 'abc' Shutl::Auth.client_secret = '123' Shutl::Auth.url = 'http://localhost:3000' Shutl::Auth.client_id. should == 'abc' Shutl::Auth.client_secret.should == '123' Shutl::Auth.url.should == 'http://localhost:3000' end it "has a nice config block" do Shutl::Auth.config do |s| s.url = 'asdf' end Shutl::Auth.url.should == 'asdf' end end
Version data entries
10 entries across 10 versions & 1 rubygems