Sha256: ab2c7f46c8da125f45a7c2439c797fab6a637d5bc79be78571b2cb2cb60b28bd

Contents?: true

Size: 450 Bytes

Versions: 2

Compression:

Stored size: 450 Bytes

Contents

require 'spec_helper'

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

      stub_api_request('projects')
      projects = LetsFreckle::Project.all
      projects.size.should == 2

      first_project = projects.first
      first_project.name.should == 'TestProject1'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
letsfreckle-client-0.2.1 spec/letsfreckle/project_spec.rb
letsfreckle-client-0.2.0 spec/letsfreckle/project_spec.rb