describe "hogehoge"
context "case A" do
before do
@user = User.guest
end
# test cases
end
context "case B" do
before do
@user = User.registered
end
# test cases
end
end
describe "fugafuga"
context "case A" do
before do
@user = User.guest
end
# test cases
end
context "case B" do
before do
@user = User.registered
end
# test cases
end
end
describe "hogehoge"
guest_user_context do
# test cases
end
paid_user_context do
# test cases
end
end
describe "fugafuga"
guest_user_context do
# test cases
end
paid_user_context do
# test cases
end
end