Sha256: e142df2a5a7ecf757e2117bea8987caceebabc5640b1357dd1c3229708c60218
Contents?: true
Size: 1002 Bytes
Versions: 3
Compression:
Stored size: 1002 Bytes
Contents
require 'spec_helper' describe Lionel::Export do describe "configuration" do before(:each) do subject.trello_board_id = "TRELLO_BOARD_ID" subject.google_doc_id = "GOOGLE_DOC_ID" end it { subject.data.should eq({ trello_board_id: "TRELLO_BOARD_ID", google_doc_id: "GOOGLE_DOC_ID" }) } it "can save the configuration data" do subject.configuration.should_receive(:save).with(subject.data) subject.save_configuration end it { subject.should be_configured } context "not configured" do before do subject.configuration.stub(trello_board_id: nil, google_doc_id: nil) end it { subject.trello_board_id = nil; subject.should_not be_configured } it { subject.google_doc_id = nil; subject.should_not be_configured } it { subject.trello_board_id = nil; subject.google_doc_id = nil; subject.should_not be_configured } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lionel_richie-0.1.5.1 | spec/lib/lionel/export_spec.rb |
lionel_richie-0.1.5 | spec/lib/lionel/export_spec.rb |
lionel_richie-0.1.4 | spec/lib/lionel/export_spec.rb |