Sha256: 9db2f50fce3653aa66600b0aa4d658aa4b94293434633beaea2e89a72574bcd5
Contents?: true
Size: 921 Bytes
Versions: 2
Compression:
Stored size: 921 Bytes
Contents
require 'spec_helper' describe BigbluebuttonRailsHelper do describe "#qrcode_url" do let(:url) { "http://www.google.com" } let(:size) { "55x55" } subject { qrcode_url(url, size) } it("uses google charts api") { should match /https:\/\/chart.googleapis.com\/chart\?cht=qr/ } it("uses encoded content") { should match /chl=#{CGI::escape(url)}/ } it("uses size") { should match /chs=#{size}/ } it("uses UTF-8") { should match /choe=UTF-8/ } end describe "#api_typeof" do it { api_type_of(FactoryGirl.create(:bigbluebutton_room)).should eql('room') } it { api_type_of(FactoryGirl.create(:bigbluebutton_server)).should eql('server') } it { api_type_of(FactoryGirl.create(:bigbluebutton_recording)).should eql('recording') } context "for a new class" do class MyUserClass; end it { api_type_of(MyUserClass.new).should eql('my-user-class') } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bigbluebutton_rails-3.0.0 | spec/helpers/bigbluebutton_rails_helper_spec.rb |
bigbluebutton_rails-2.3.0 | spec/helpers/bigbluebutton_rails_helper_spec.rb |