Sha256: 7de7638ad06cdcd52a4bcca55420a7a2007abb00f6cca14c6f21233cf196b0f9
Contents?: true
Size: 529 Bytes
Versions: 3
Compression:
Stored size: 529 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_http_request(:get, LetsFreckle::Project.url('projects')).to_return(:body => load_response('projects')) projects = LetsFreckle::Project.all projects.size.should == 2 first_project = projects.first first_project.name.should == 'TestProject1' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
letsfreckle-client-0.1.2 | spec/letsfreckle/project_spec.rb |
letsfreckle-client-0.1.1 | spec/letsfreckle/project_spec.rb |
letsfreckle-client-0.1.0 | spec/letsfreckle/project_spec.rb |