Sha256: b3affba0ca64146503b9da1e620f73ed524a13a46134459f4b3337e9cdff7714

Contents?: true

Size: 602 Bytes

Versions: 4

Compression:

Stored size: 602 Bytes

Contents

require 'spec_helper'

describe Mohawk::Navigation do
  context '#on with extra info' do
    When { start_app }
    Then { on(MainForm, pid: Mohawk.app.pid).present? }
  end

  context '#navigate_to' do
    Given do
      Mohawk::Navigation.routes = {
          :default => [
              [MainForm, :about],
              [About, :close],
              [MainForm, :data_entry_form],
              [DataEntryForm]
          ]
      }
      start_app
    end

    When(:data_entry_form) { navigate_to(DataEntryForm) }
    Then { expect(data_entry_form).to be_present }
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mohawk-0.4.2 spec/lib/mohawk/navigation_spec.rb
mohawk-0.4.1 spec/lib/mohawk/navigation_spec.rb
mohawk-0.4 spec/lib/mohawk/navigation_spec.rb
mohawk-0.3 spec/lib/mohawk/navigation_spec.rb