spec/lib/hackpad/cli/pad_spec.rb in hackpad-cli-0.1.2 vs spec/lib/hackpad/cli/pad_spec.rb in hackpad-cli-0.1.3

- old
+ new

@@ -14,11 +14,11 @@ it { expect(pad.id).to eq '123' } end describe '.cached?' do before { Hackpad::Cli::Store.stub(:exist?).and_return true } - it { expect(pad.cached?).to be_true } + it { expect(pad.cached?).to be true } end context 'when the pad has no data,' do describe '.title' do it { expect(pad.title).to eq nil } @@ -65,10 +65,10 @@ before { Hackpad::Cli::Store.stub(:read).with('123', 'txt').and_return("This\nis\nInformation!") } before { Hackpad::Cli::Store.stub(:read_options).with('123').and_return(meta) } before { pad.load_from_provider Hackpad::Cli::Store, 'txt' } it { expect(pad.content).to eq "This\nis\nInformation!" } it { expect(pad.guest_policy).to eq 'open' } - it { expect(pad.moderated).to be_false } + it { expect(pad.moderated).to be false } it { expect(pad.cached_at).to eq 'some time' } end end context 'when we want a refresh,' do describe '.load' do