Sha256: 6dc51f8e00f7c9d3eee6f84f9e7753d73ff06bbc5e45d232f1f3d99c5b7ca74e

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

require 'spec_helper'

describe Silvermoon::Notifier::Base do

  it { should respond_to(:identifier) }

  it "should raise NotImplementedError on notify method" do
    lambda { Silvermoon::Notifier::Base.new.notify('title', 'content', 'url') }.should raise_error(NotImplementedError)
  end

  it "should read the configuration for his class" do
    with_config_file(STUB_CONFIG) do
      notifier = Silvermoon::Notifier::Twitter.new
      notifier.identifier = :twitter
      notifier.config.should == STUB_CONFIG[:twitter]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
silvermoon-0.1 spec/silvermoon/notifier/base_spec.rb