Sha256: d190b9b8233c59bce35ec59864ecf2a949eaa67993da14d7defb2c70892d160b
Contents?: true
Size: 746 Bytes
Versions: 2
Compression:
Stored size: 746 Bytes
Contents
require "spec_helper" describe BigbluebuttonRails::Generators::PublicGenerator do include GeneratorSpec::TestCase destination File.expand_path("../../../tmp", __FILE__) tests BigbluebuttonRails::Generators::PublicGenerator before(:all) do prepare_destination end it "creates and revokes all files properly" do run_generator assert_files run_generator %w(), :behavior => :revoke assert_files(false) end def assert_files(assert_exists=true) files = [ "public/images/loading.gif", "public/javascripts/heartbeat.js", "public/javascripts/jquery.min.js" ] if assert_exists files.each { |f| assert_file f } else files.each { |f| assert_no_file f } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bigbluebutton_rails-0.0.2 | spec/generators/public_generator_spec.rb |
bigbluebutton_rails-0.0.1 | spec/generators/public_generator_spec.rb |