Sha256: 18c6a3ba060c7c3c4d128ad5ca5d8507b0e5a0aaf290ceafddd67108b61ea790
Contents?: true
Size: 810 Bytes
Versions: 5
Compression:
Stored size: 810 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Sheet do before(:all){ Quandl::Client.token = Spec::Config::Quandl.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
Version data entries
5 entries across 5 versions & 1 rubygems