Sha256: 5e8ac40218ad0d6b84fc5620650368be9bd318e6ca9e13ffe590b722e9e1dafb
Contents?: true
Size: 826 Bytes
Versions: 4
Compression:
Stored size: 826 Bytes
Contents
module Spec module DSL class Configuration def mock_with(mock_framework) @mock_framework = case mock_framework when Symbol mock_framework_path(mock_framework.to_s) else mock_framework end end def mock_framework @mock_framework ||= mock_framework_path("rspec") end def include(mod) included_modules << mod end def included_modules @included_modules ||= [] end def predicate_matchers @predicate_matchers ||= {} end private def mock_framework_path(framework_name) File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..", "plugins", "mock_frameworks", framework_name)) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rspec-0.9.3 | lib/spec/dsl/configuration.rb |
rspec-0.9.1 | lib/spec/dsl/configuration.rb |
rspec-0.9.0 | lib/spec/dsl/configuration.rb |
rspec-0.9.2 | lib/spec/dsl/configuration.rb |