spec/spec_helper.rb in maestrano-connector-rails-1.1.2 vs spec/spec_helper.rb in maestrano-connector-rails-1.2.0

- old
+ new

@@ -18,6 +18,12 @@ config.use_transactional_fixtures = true config.infer_base_class_for_anonymous_controllers = false config.order = "random" config.include FactoryGirl::Syntax::Methods config.include Maestrano::Connector::Rails::Engine.routes.url_helpers -end \ No newline at end of file + + config.before(:each) do + allow(Maestrano::Connector::Rails::External).to receive(:external_name).and_return('External app') + allow(Maestrano::Connector::Rails::External).to receive(:get_client).and_return(Object.new) + allow(Maestrano::Connector::Rails::External).to receive(:entities_list).and_return(%w(entity1 entity2)) + end +end