spec/louis_spec.rb in louis-2.0.2 vs spec/louis_spec.rb in louis-2.0.3

- old
+ new

@@ -3,15 +3,15 @@ RSpec.describe Louis do it 'has a version number' do expect(Louis::VERSION).not_to be nil end - it "it should have it's source data file" do + it "it should have its source data file" do expect(File.readable?(Louis::ORIGINAL_OUI_FILE)).to be(true) end - it "it should have it's parsed data file" do + it "it should have its parsed data file" do expect(File.readable?(Louis::PARSED_DATA_FILE)).to be(true) end describe 'Original OUI format regex' do subject { Louis::OUI_FORMAT_REGEX } @@ -70,8 +70,14 @@ expect(Louis.lookup(unknown_mac)['short_vendor']).to eq('Unknown') end it 'should return "Unknown" as the long vendor string for unknown MAC prefixes' do expect(Louis.lookup(unknown_mac)['long_vendor']).to eq('Unknown') + end + end + + describe '#mask_keys' do + it 'should return a list of integers: [48, 45, 44, 40, 36, 32, 28, 25, 24, 16]' do + expect(Louis.mask_keys).to eq([48, 45, 44, 40, 36, 32, 28, 25, 24, 16]) end end end