Sha256: c7634f3530867fbd58efe08236e0e2750524f5a5c350b837d3e4d7e057e9fe9f

Contents?: true

Size: 617 Bytes

Versions: 5

Compression:

Stored size: 617 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')

describe "Things::App" do

  describe '#instance' do
    
    it 'should return an instance of the Things app' do
      Things::App.instance.class.should == Appscript::Application
    end
    
  end
  
  describe '#activate' do
  
    it 'should put the app in the front' do      
      Things::App.instance!.activate
      Things::App.instance.frontmost.get.should == true
    end
    
  end
  
  describe '#lists' do
    
    it "should return Things::Collections::List" do
      Things::App.lists.should == Things::List
    end

  end
    
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
things-client-0.2.4 spec/things/app_spec.rb
things-client-0.2.3 spec/things/app_spec.rb
things-client-0.2.2 spec/things/app_spec.rb
things-client-0.2.1 spec/things/app_spec.rb
things-client-0.2.0 spec/things/app_spec.rb