class RSpec::UnitExt::ExpectationGroup

Public Class Methods

new(example_group, *expectations, **attributes) click to toggle source
# File lib/rspec/unit_ext/expectation_group.rb, line 8
def initialize(example_group, *expectations, **attributes)
  @example_group = example_group
  @expectations = expectations.map do |expectation|
    expectation = Expectation.new example_group, expectation if expectation.is_a? Hash
    expectation.fill_attributes attributes

    expectation
  end
end

Public Instance Methods

run() click to toggle source
# File lib/rspec/unit_ext/expectation_group.rb, line 18
def run
  @expectations.each(&:run)
end