Sha256: 07ae7e597356fc5d8eeae3758d900764cbe2a967d8aad587e58d857468577939
Contents?: true
Size: 578 Bytes
Versions: 14
Compression:
Stored size: 578 Bytes
Contents
require 'spec_helper' describe Taskinator::Executor do let(:definition) do Module.new() do def method; end end end subject { Taskinator::Executor.new(definition) } it "should mixin definition" do expect(subject).to be_a(definition) end it "should mixin definition for the instance only" do expect(Taskinator::Executor).to_not be_a(definition) end it "should assign definition" do expect(subject.definition).to eq(definition) end it "should contain definition methods" do expect(subject).to respond_to(:method) end end
Version data entries
14 entries across 14 versions & 1 rubygems