module GitCommander::RSpec::PluginHelpers

Contains helper methods and matchers for testing git-commander plugins

Public Instance Methods

stub_inline_gemfile() click to toggle source
# File lib/git_commander/rspec/plugin_helpers.rb, line 55
def stub_inline_gemfile
  mock_gemfile = MockGemfile.new
  allow_any_instance_of(GitCommander::Plugin::Loader).to receive(:gemfile) do |*args, &block|
    mock_gemfile.instance_eval(&block)
  end
  mock_gemfile
end