Sha256: 1c1fb456a958bd2c76156ed4b753b002ad47a145217c5079a5f08cc49f1e1e34
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
require 'spec_helper' require 'ronin/cli/string_methods_command' describe Ronin::CLI::StringMethodsCommand do module TestStringMethodsCommand class TestCommand < Ronin::CLI::StringMethodsCommand end end let(:test_class) { TestStringMethodsCommand::TestCommand } subject { test_class.new } describe "#process_string" do let(:string) { 'hello world' } before do subject.method_calls << [:upcase] subject.method_calls << [:reverse] end it "must apply all method options to the given String" do expect(subject.process_string(string)).to eq("DLROW OLLEH") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-2.0.0.beta1 | spec/cli/string_methods_command_spec.rb |