Sha256: 32b0b345199811c5a32d4ae4f64db9f5ae8d6286c086033cececf1ee56231a29

Contents?: true

Size: 483 Bytes

Versions: 3

Compression:

Stored size: 483 Bytes

Contents

require 'spec_helper'

describe LetsFreckle::Tag do
  context "#all" do
    it "should return all tags" do
      LetsFreckle.configure do
        username "username"
        account_host "host"
        token "secret"
      end

      stub_http_request(:get, LetsFreckle::Tag.url('tags')).to_return(:body => load_response('tags'))
      tags = LetsFreckle::Tag.all
      tags.size.should == 2

      first_tag = tags.first
      first_tag.name.should == 'test tag 1'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
letsfreckle-client-0.1.2 spec/letsfreckle/tag_spec.rb
letsfreckle-client-0.1.1 spec/letsfreckle/tag_spec.rb
letsfreckle-client-0.1.0 spec/letsfreckle/tag_spec.rb