spec/lib/quandl/client/sheet_spec.rb in quandl_client-2.7.3 vs spec/lib/quandl/client/sheet_spec.rb in quandl_client-2.7.4

- old
+ new

@@ -1,38 +1,38 @@ -# encoding: utf-8 -require 'spec_helper' - -describe Sheet do - - before(:all){ Quandl::Client.token = ENV['QUANDL_AUTH_TOKEN'] } - - let(:sheet){ build(:sheet) } - - subject{ sheet } - - its(:valid?){ should be_true } - - context "when saved" do - - before(:each){ subject.save } - - its(:saved?){ should be_true } - - describe "#description" do - - its(:description){ should eq "Test sheet description." } - - it "should find the description" do - Sheet.find( subject.id ).description.should eq "Test sheet description." - end - - it "should update the description" do - subject.description = "New description." - subject.save - Sheet.find( subject.id ).description.should eq "New description." - end - - end - - end - +# encoding: utf-8 +require 'spec_helper' + +describe Sheet do + + before(:all){ Quandl::Client.token = ENV['QUANDL_AUTH_TOKEN'] } + + let(:sheet){ build(:sheet) } + + subject{ sheet } + + its(:valid?){ should be_true } + + context "when saved" do + + before(:each){ subject.save } + + its(:saved?){ should be_true } + + describe "#description" do + + its(:description){ should eq "Test sheet description." } + + it "should find the description" do + Sheet.find( subject.id ).description.should eq "Test sheet description." + end + + it "should update the description" do + subject.description = "New description." + subject.save + Sheet.find( subject.id ).description.should eq "New description." + end + + end + + end + end \ No newline at end of file