Sha256: 01ab2476c7ab365152f2f7accdf2e2430c7138e835886265c6de7dd6c5012428

Contents?: true

Size: 240 Bytes

Versions: 3

Compression:

Stored size: 240 Bytes

Contents

describe Kontena::Plugin::Shell::ContextUpCommand do
  it 'goes up in context' do
    context = Kontena::Plugin::Shell::Context.new(['foo', 'bar'])
    described_class.new(context, ['..']).run
    expect(context.to_s).to eq 'foo'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kontena-plugin-shell-0.2.0 spec/kontena/plugin/shell/commands/context_up_spec.rb
kontena-plugin-shell-0.1.3 spec/kontena/plugin/shell/commands/context_up_spec.rb
kontena-plugin-shell-0.1.2 spec/kontena/plugin/shell/commands/context_up_spec.rb