Sha256: 58a3d75c1cdb2424c1cdf6adfc9016ca84635ca0e659907b8d7f3a881ae259fc

Contents?: true

Size: 374 Bytes

Versions: 7

Compression:

Stored size: 374 Bytes

Contents

def mock_server_and_api
  @api_mock = mock(BigBlueButton::BigBlueButtonApi)
  @server_mock = mock_model(BigbluebuttonServer)
  @server_mock.stub(:api).and_return(@api_mock)
  BigbluebuttonServer.stub(:find).and_return(@server_mock)
  BigbluebuttonServer.stub(:find_by_param).and_return(@server_mock)
end

def mocked_server
  @server_mock
end

def mocked_api
  @api_mock
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bigbluebutton_rails-1.2.0 spec/support/mocked_server.rb
bigbluebutton_rails-1.1.0 spec/support/mocked_server.rb
bigbluebutton_rails-1.0.0 spec/support/mocked_server.rb
bigbluebutton_rails-0.1.1 spec/support/mocked_server.rb
bigbluebutton_rails-0.1.0 spec/support/mocked_server.rb
bigbluebutton_rails-0.0.6 spec/support/mocked_server.rb
bigbluebutton_rails-0.0.5 spec/support/mocked_server.rb