Sha256: 43db5ae316cde76c6068a26ad05e215e68d7673857c894a8e8691dfa82337498

Contents?: true

Size: 640 Bytes

Versions: 3

Compression:

Stored size: 640 Bytes

Contents

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

describe Jelly::Common do
  attr_reader :fixture
  before do
    @fixture = Class.new do
      include Jelly::Common
    end.new
  end

  describe "#jelly_notify_op" do
    it "creates a notify op with a method and arguments" do
      fixture.jelly_notify_op("my_method", 1, 2, 3).should == ["notify", "my_method", 1, 2, 3]
    end
  end

  describe "#jelly_call_op" do
    it "creates a call op with object, method, and arguments" do
      fixture.jelly_call_op("MyObject", "my_method", 1, 2, 3).should == ["call", "MyObject", "my_method", 1, 2, 3]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
honkster-jelly-0.13.2 spec/jelly/common_spec.rb
honkster-jelly-0.13.1 spec/jelly/common_spec.rb
honkster-jelly-0.13.0 spec/jelly/common_spec.rb