lib/rspec/expect_it/helpers.rb in rspec-expect_it-1.0.1 vs lib/rspec/expect_it/helpers.rb in rspec-expect_it-1.0.2

- old
+ new

@@ -36,18 +36,10 @@ end expect(result) end - def expect_its(method) - ExpectItsExpectationTarget.new(self, method) - end - - def expect_its!(method) - expect(subject.send(method)) - end - class ExpectItExpectationTarget attr_accessor :context, :subject def initialize(context, subject = nil) self.context = context @@ -76,24 +68,9 @@ begin subject || context.subject rescue Exception nil end - end - end - - class ExpectItsExpectationTarget < ExpectItExpectationTarget - attr_accessor :method - - def initialize(context, method) - super(context) - self.method = method - end - - private - - def get_subject - context.subject.send(method) end end end end end \ No newline at end of file