Sha256: a835987479e2cc56e8a1969773224928fcbb5f292503de8f8bebf56d41b8afa8
Contents?: true
Size: 1.04 KB
Versions: 5
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
5 entries across 5 versions & 1 rubygems