spec/lib/appsignal/integrations/grape_spec.rb in appsignal-2.1.0.beta.1 vs spec/lib/appsignal/integrations/grape_spec.rb in appsignal-2.1.0
- old
+ new
@@ -25,11 +25,11 @@
Object.send(:remove_const, :GrapeExample)
end
describe "#call" do
context "when AppSignal is not active" do
- before(:all) do
+ before(:context) do
Appsignal.config = nil
Appsignal::Hooks.load_hooks
end
it "creates no transaction" do
@@ -43,12 +43,12 @@
after { middleware.call(env) }
end
context "when AppSignal is active" do
let(:transaction) { http_request_transaction }
- before :all do
+ before :context do
Appsignal.config = project_fixture_config
- expect(Appsignal.active?).to be_true
+ expect(Appsignal.active?).to be_truthy
end
before do
expect(Appsignal::Transaction).to receive(:create).with(
kind_of(String),
Appsignal::Transaction::HTTP_REQUEST,