Sha256: 88b91626a1fa251ac5f90a009efa61d64dd55fe36c86601f776222e4ba44b5e8
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
require File.dirname(__FILE__) + "/../../spec_helper" module FixtureReplacement describe "including methods" do it "should have the create_user method as public" do obj = use_module do attributes_for :user end obj.public_methods.should include("create_user") end it "should respond_to? create_user" do obj = use_module do attributes_for :user end obj.respond_to?(:create_user).should be_true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fixture_replacement-3.0.1 | spec/fixture_replacement/integration/public_methods_spec.rb |