Sha256: f029568c153cad8ddc47ef56042107b80f19933c7fb9bf5aab981b1e2c21031b

Contents?: true

Size: 472 Bytes

Versions: 19

Compression:

Stored size: 472 Bytes

Contents

require 'spec_helper'

describe Rearview::MonitorController do

  before do
    sign_in_as create(:user)
    @routes = Rearview::Engine.routes
  end

  context "POST /monitor" do
    it "renders the create view" do
      json = JsonFactory::Monitor.create
      Rearview::MonitorRunner.expects(:run).with(json["metrics"],json["monitorExpr"],json["minutes"].to_s,{},false,json["toDate"],true).once
      post :create, json
      render_template(:create)
    end
  end

end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rearview-1.1.2-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.1.1-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.1.0-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.3.rc.4-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.3.rc.3-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.3.rc.2-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.3.rc.1-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.2-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.2.rc.4-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.2.rc.3-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.2.rc.2-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.2.rc.1-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.1-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.0-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.0.rc5-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.0.rc4-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.0.rc3-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.0.rc2-jruby spec/controllers/monitor_controller_spec.rb
rearview-1.0.0.rc1-jruby spec/controllers/monitor_controller_spec.rb