Sha256: 3f760eb40ce6d410e5887832ef8df0b5082e1957232e2cc55653102aef34a5bc

Contents?: true

Size: 840 Bytes

Versions: 5

Compression:

Stored size: 840 Bytes

Contents

require 'spec_helper'
require 'watch_tower/appscript'

module ::Appscript
  describe "Module" do
    subject do
      Class.new do
        extend ::Appscript
      end
    end
    describe "#app" do

      it { should respond_to :app }

      it "should return an instance of Application" do
        subject.app.should be_instance_of ::Appscript::Application
      end
    end

    describe "#its" do
      it { should respond_to :its }
    end

    describe "#name" do
      it { should respond_to :name }
    end
  end

  describe "Application" do
    subject { ::Appscript.app('TextMate') }

    [:name, :version, :processes, :unix_id, :by_pid, :is_running?].each do |method|
      it "should respond to #{method}" do
        -> {
          subject.send(method)
        }.should_not raise_error NoMethodError
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
watch_tower-0.0.1.beta5 spec/watch_tower/appscript_spec.rb
watch_tower-0.0.1.beta4 spec/watch_tower/appscript_spec.rb
watch_tower-0.0.1.beta3 spec/watch_tower/appscript_spec.rb
watch_tower-0.0.1.beta2 spec/watch_tower/appscript_spec.rb
watch_tower-0.0.1.beta1 spec/watch_tower/appscript_spec.rb