Sha256: 1e202db784597a1ff0d9f91349ee40ac37b0871499cc9a13f6290644c5d0ce6f

Contents?: true

Size: 489 Bytes

Versions: 3

Compression:

Stored size: 489 Bytes

Contents

require 'spec_helper'

describe Reparty::Report do
  let(:interval) { 1 }
  let(:title) { "title" }

  subject { Reparty::Report.new(interval, title) }

  its(:color)    { should == "#832701"}
  its(:interval) { should == interval}
  its(:title)    { should == title}

  it "requires a title" do
    expect {
      Reparty::Report.new(interval, "")
    }.to raise_exception
  end

  it "has an attach method" do
    expect {
      subject.attach(nil)
    }.to_not raise_exception
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reparty-0.5.2 spec/report_spec.rb
reparty-0.5.1 spec/report_spec.rb
reparty-0.5.0 spec/report_spec.rb