Sha256: 4ce88eb761e6098fe6cb4d1e7b1ef33d9dd798b0f8535052f0fa44bf3ed81b39
Contents?: true
Size: 1.96 KB
Versions: 1
Compression:
Stored size: 1.96 KB
Contents
require 'spec_helper' require 'ronin/cli/commands/quote' describe Ronin::CLI::Commands::Quote do describe "options" do before { subject.parse_options(argv) } describe "--c" do let(:argv) { %w[--c] } it "must require 'ronin/support/encoding/c'" do expect(require 'ronin/support/encoding/c').to be(false) end it "must add :c_string to #method_calls" do expect(subject.method_calls.last).to eq(:c_string) end end describe "--hex" do let(:argv) { %w[--hex] } it "must require 'ronin/support/encoding/hex'" do expect(require 'ronin/support/encoding/hex').to be(false) end it "must add :hex_string to #method_calls" do expect(subject.method_calls.last).to eq(:hex_string) end end describe "--js" do let(:argv) { %w[--js] } it "must require 'ronin/support/encoding/js'" do expect(require 'ronin/support/encoding/js').to be(false) end it "must add :js_string to #method_calls" do expect(subject.method_calls.last).to eq(:js_string) end end describe "--shell" do let(:argv) { %w[--shell] } it "must require 'ronin/support/encoding/shell'" do expect(require 'ronin/support/encoding/shell').to be(false) end it "must add :shell_string to #method_calls" do expect(subject.method_calls.last).to eq(:shell_string) end end describe "--powershell" do let(:argv) { %w[--powershell] } it "must require 'ronin/support/encoding/powershell'" do expect(require 'ronin/support/encoding/powershell').to be(false) end it "must add :powershell_string to #method_calls" do expect(subject.method_calls.last).to eq(:powershell_string) end end describe "--ruby" do let(:argv) { %w[--ruby] } it "must add :ruby_string to #method_calls" do expect(subject.method_calls.last).to eq(:ruby_string) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-2.0.0.beta1 | spec/cli/commands/quote_spec.rb |