Sha256: b4226e1d8e1c39d31fed9a92a2c47c1463ccc207ec37a97f451cda98555f3ae4

Contents?: true

Size: 384 Bytes

Versions: 12

Compression:

Stored size: 384 Bytes

Contents

# Common matchers for controller specs

RSpec::Matchers.define :listen_to do |use_case|
  match do |listener|
    expect(use_case).to receive(:subscribe).with(listener, prefix: :on).once
  end
end

RSpec::Matchers.define :run_after_subscriptions do
  match do |use_case|
    expect(use_case).to receive(:subscribe).ordered
    expect(use_case).to receive(:run).once.ordered
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
hexx-1.1.1 lib/generators/install/templates/matchers/controllers.erb
okei-1.0.2 spec/support/matchers/controllers.rb
hexx-1.1.0 lib/generators/install/templates/spec/controllers.erb
okei-1.0.1 spec/support/matchers/controllers.rb
hexx-1.0.2 lib/generators/install/templates/spec/controllers.erb
okei-1.0.0 spec/support/matchers/controllers.rb
okei-1.0.0.pre.rc spec/support/matchers/controllers.rb
okei-0.0.2 spec/support/matchers/controllers.rb
hexx-1.0.1 lib/generators/install/templates/spec/controllers.erb
hexx-1.0.0 lib/generators/install/templates/spec/controllers.erb
hexx-0.1.1 lib/generators/install/templates/spec/controllers.erb
hexx-0.1.0 lib/generators/install/templates/spec/controllers.erb