Sha256: 4f31610463567c6dc34c8a5f12632917a5f888be530e62041c88a753b2faf707

Contents?: true

Size: 539 Bytes

Versions: 11

Compression:

Stored size: 539 Bytes

Contents

require File.join(File.dirname(File.expand_path(__FILE__)), "/../spec_helper.rb")

describe Object, "with extensions" do
  it "should have unique methods on an object" do
    INTERPRETER.unique_methods.should include("preview")
  end

  it "should have unique methods on a class" do
    AutomateIt::Interpreter.unique_methods.should include("invoke")
  end

  it "should parse arguments and options" do
    args, opts = args_and_opts(:foo, :bar, :baz => :quux)

    args.should == [:foo, :bar]
    opts.should == {:baz => :quux}
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
automateit-0.71103 spec/unit/object_spec.rb
automateit-0.71104 spec/unit/object_spec.rb
automateit-0.71111 spec/unit/object_spec.rb
automateit-0.71221 spec/unit/object_spec.rb
automateit-0.71220 spec/unit/object_spec.rb
automateit-0.71112 spec/unit/object_spec.rb
automateit-0.71219 spec/unit/object_spec.rb
automateit-0.71226.1 spec/unit/object_spec.rb
automateit-0.71226 spec/unit/object_spec.rb
automateit-0.71230 spec/unit/object_spec.rb
automateit-0.80116 spec/unit/object_spec.rb