Sha256: ea9dcf6c50f125706cc417f61792960a271b80965d7c496335ba8eb19839fc30

Contents?: true

Size: 692 Bytes

Versions: 36

Compression:

Stored size: 692 Bytes

Contents

require 'spec_helper'

def struct(obj_in)
  OpenStruct.new(obj_in)
end

describe WoopleTheme::AnswerPresenter do
  obj = {
    index: nil,
    text: nil
  }

  subject { WoopleTheme::AnswerPresenter.new(struct(obj)) }

  describe "#correct_badge" do
    it "renders nothing" do
      subject.correct_badge.should be_nil
    end
  end

  describe "#incorrect_badge" do
    it "renders nothing" do
      subject.incorrect_badge.should be_nil
    end
  end

  describe "#radio_disabled" do
    it "renders nothing" do
      subject.radio_disabled.should be_nil
    end
  end

  describe "#radio_checked" do
    it "renders nothing" do
      subject.radio_checked.should be_nil
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
woople-theme-0.8.1 spec/presenters/answer_presenter_spec.rb
woople-theme-0.8.0 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.27 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.26 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.25 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.24 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.23 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.22 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.21 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.20 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.19 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.18 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.17 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.14 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.13 spec/presenters/answer_presenter_spec.rb
woople-theme-0.6.12 spec/presenters/answer_presenter_spec.rb