Sha256: b903afd88400e91729c01e8abf8532ab7782e94978d152fdd392a1a40db0083d

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

require 'spec_helper'

describe BasePresenter do
  let(:dummy) { Dummy.new }

  let(:dummy_presenter) do
    DummyHelper.present(dummy)
  end

  it "should initialize presenter" do
    dummy_presenter
  end

  it "#presents" do
    dummy_presenter.dummy.should eq dummy
  end

  it "should show formated name" do
    dummy_presenter.name.should eq("EXAMPLE NAME")
  end

  it "#handle_none with not blank of value" do
    value = "no empty"
    dummy_presenter.handle_none(value) {value}.should eq(value)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
base_presenter-0.0.4 spec/base_presenter_spec.rb