Sha256: 2f1ed49c74f1279c9d4310c39f2b4824a5c92ef1fd858e51c268c16bce8f2d25
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
require 'spec_helper' require 'ronin/installation' describe Installation do it "should load the gemspec for the 'ronin' library" do subject.gems['ronin'].should_not be_nil end it "should find the installation path of the 'ronin' library" do subject.paths['ronin'].should_not be_nil end it "should provide the names of the installed Ronin libraries" do subject.libraries.should include('ronin') end describe "each_file" do let(:directory) { 'lib/ronin/ui/cli/commands' } let(:expected) { %w[ campaigns.rb console.rb creds.rb database.rb emails.rb exec.rb help.rb hosts.rb ips.rb repos.rb urls.rb ] } it "should enumerate over the files within a certain directory" do subject.each_file(directory).to_a.should == expected end it "should return an Enumerator when no block is given" do subject.each_file(directory).all? { |file| expected.include?(file) }.should == true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ronin-1.0.0.pre2 | spec/installation_spec.rb |
ronin-1.0.0.pre1 | spec/installation_spec.rb |