spec/spec_helper.rb in genomer-0.0.8 vs spec/spec_helper.rb in genomer-0.0.9

- old
+ new

@@ -3,10 +3,11 @@ require 'rspec' require 'fakefs/spec_helpers' require 'scaffolder/test/helpers' require 'genomer' +require 'genomer/version' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each do |f| require File.expand_path(f) @@ -20,20 +21,16 @@ class MockSettings attr :rest - def initialize(rest = [], command_args = {}) + def initialize(rest = [], args = {}) @rest = rest - @args = command_args + @args = args end - def [](arg) - @args[arg] - end - - def flags - @args + def method_missing(method, *args, &block) + @args.send(method, *args, &block) end end config.after(:each) do