Sha256: 24cfbcf6f2f5ea5dae59534ddb23fd5c0fa24c52793b0bdfbdaf9e4b26a50439
Contents?: true
Size: 837 Bytes
Versions: 6
Compression:
Stored size: 837 Bytes
Contents
require "spec_helper" RSpec.describe InfluxDB::Rails::Context do subject { described_class.new } describe "#controller" do it "does set and get" do subject.controller = "Controller" expect(subject.controller).to eq("Controller") end end describe "#action" do it "does get and set" do subject.action = "action" expect(subject.action).to eq("action") end end describe "#location" do before do subject.controller = "Controller" subject.action = "action" end it { expect(subject.location).to eq("Controller#action") } end describe "#reset" do before do subject.controller = "Controller" subject.action = "action" end it "does reset the location" do subject.reset expect(subject.location).to be_empty end end end
Version data entries
6 entries across 6 versions & 3 rubygems