#require 'spec_helper' #load 'ro_cells/opal.rb' # #class Klass # include ::RoCells::OpalHelper #end # #describe "Opal" do # let(:o) do # Klass.new # end # # before do # cdfix "opal" # RoFaker.flow do |f| # f.f "test.rb", <<-CONTENT # puts "what's the fuck?" # CONTENT # end # # allow(o).to receive(:default_dir).and_return(Dir.pwd) # end # # it "#handle_single" do # result = o.send(:"handle_single", "test.rb") # expect(File).to exist "test.js" # end # # it "#delete_all_js" do # RoFaker.flow do |f| # f.f "try.js" # f.f "try2.js" # f.f "try3.js" # end # # allow(o).to receive(:default_dir).and_return(Dir.pwd) # result = o.send(:"delete_all_js") # end #end #