Sha256: 80c855f47d48ee384be8fc2e952aa2e5b04b8ed7371439aece9626df7e6f5472

Contents?: true

Size: 977 Bytes

Versions: 6

Compression:

Stored size: 977 Bytes

Contents

require 'spec_helper'

describe BigbluebuttonRails do
  it "should be a module" do
    BigbluebuttonRails.should be_a(Module)
  end

  it "should have an engine" do
    BigbluebuttonRails::Engine.new.should be_a_kind_of(Rails::Engine)
  end

  describe "#value_to_boolean" do
    it { BigbluebuttonRails::value_to_boolean("true").should be_true }
    it { BigbluebuttonRails::value_to_boolean("1").should be_true }
    it { BigbluebuttonRails::value_to_boolean(1).should be_true }
    it { BigbluebuttonRails::value_to_boolean(true).should be_true }
    it { BigbluebuttonRails::value_to_boolean("t").should be_true }
    it { BigbluebuttonRails::value_to_boolean("false").should be_false }
    it { BigbluebuttonRails::value_to_boolean("0").should be_false }
    it { BigbluebuttonRails::value_to_boolean(0).should be_false }
    it { BigbluebuttonRails::value_to_boolean(false).should be_false }
    it { BigbluebuttonRails::value_to_boolean("f").should be_false }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bigbluebutton_rails-1.2.0 spec/bigbluebutton_rails_spec.rb
bigbluebutton_rails-1.1.0 spec/bigbluebutton_rails_spec.rb
bigbluebutton_rails-1.0.0 spec/bigbluebutton_rails_spec.rb
bigbluebutton_rails-0.1.1 spec/bigbluebutton_rails_spec.rb
bigbluebutton_rails-0.1.0 spec/bigbluebutton_rails_spec.rb
bigbluebutton_rails-0.0.6 spec/bigbluebutton_rails_spec.rb