Sha256: 000b3fcb8e6d90b9f5c6135ffe42c4e31bbfaccef403e3cde522f0c58acf46ba

Contents?: true

Size: 218 Bytes

Versions: 20

Compression:

Stored size: 218 Bytes

Contents

module RSpecCandy
  module Helpers
    module NewWithStubs

      def new_with_stubs(stubs)
        obj = new
        obj.stub_existing stubs
        obj
      end

      Class.send(:include, self)

    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rspec_candy-0.5.1 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.5.0 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.4.1 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.4.0 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.3.1 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.3.0 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.2.10 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.2.9 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.2.8 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.2.7 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.2.6 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.2.5 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.2.4 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.2.3 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.2.2 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.2.1 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.2.0 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.1.2 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.1.1 lib/rspec_candy/helpers/new_with_stubs.rb
rspec_candy-0.1.0 lib/rspec_candy/helpers/new_with_stubs.rb