Sha256: 0f598ddfa161bb0d7dd2ec48a0bcc967addf7e78f788862b9a8eacf0af60c67f
Contents?: true
Size: 854 Bytes
Versions: 2
Compression:
Stored size: 854 Bytes
Contents
require 'highwinds-api' describe HighwindsAPI do let(:config) { YAML.load_file('spec/config.yml') } it "set credentials" do username = "user" password = "pass" subject.set_credentials(username, password) subject.credentials.should eq({ username: username, password: password }) end it "get token" do subject.set_credentials(config["username"], config["password"]) expect(subject.get_token.length).to be >= 20 end it "get token snd time to be the same as first one" do subject.set_credentials(config["username"], config["password"]) old_token = subject.get_token new_token = subject.get_token expect(new_token).to be(old_token) end it "autoloads ::Content" do # subject.autoload?(:Content).should eq("highwinds-api/content") subject::Content.should eq(HighwindsAPI::Content) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
highwinds-api-0.1.1 | spec/highwinds-api_spec.rb |
highwinds-api-0.1.0 | spec/highwinds-api_spec.rb |