Sha256: 2cd52a9c54dbd9d9b1dbba314070e1bc41c970eff7e090106230647450af38fd

Contents?: true

Size: 555 Bytes

Versions: 4

Compression:

Stored size: 555 Bytes

Contents

require "spec_helper"

describe BitPlayer::Navigator do
  let(:status) do
    double(
      "status",
      context: "a",
      module_position: 1,
      provider_position: 2,
      content_position: 3
    )
  end
  let(:participant) { double("participant", navigation_status: status) }
  let(:view_context) { double("context", current_participant: participant) }

  it "should render the content from the current provider" do
    nav = BitPlayer::Navigator.new(participant)
    expect(nav.render_current_content(view_context)).to match(/Oops/)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bit_player-0.1.4 spec/models/bit_player/navigator_spec.rb
bit_player-0.1.3 spec/models/bit_player/navigator_spec.rb
bit_player-0.1.2 spec/models/bit_player/navigator_spec.rb
bit_player-0.1.1 spec/models/bit_player/navigator_spec.rb