Sha256: 70c796051bcc08d969413457d8682a0506fed310bfd96e916bfa82df3fc759ea

Contents?: true

Size: 545 Bytes

Versions: 5

Compression:

Stored size: 545 Bytes

Contents

require 'spec_helper'

describe Reparty do
  it "should have a version number" do
    Reparty::VERSION.should_not be_nil
  end

  it "configures properly" do
    Reparty.config do |config|
      config.sender = "test@test.com"
    end
    Reparty.configuration.sender.should == "test@test.com"
  end

  it "adds reports" do
    Reparty.config do |config|
      config.add_report Reparty::Report, "Some Report"
    end
    Reparty.reports.first.should be_kind_of(Reparty::Report)
    Reparty.reports.first.title.should == "Some Report"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
reparty-0.3.2 spec/reparty_spec.rb
reparty-0.3.1 spec/reparty_spec.rb
reparty-0.2.1 spec/reparty_spec.rb
reparty-0.2.0 spec/reparty_spec.rb
reparty-0.1.3 spec/reparty_spec.rb