spec/kern/controller_spec.rb in flok-0.0.79 vs spec/kern/controller_spec.rb in flok-0.0.80
- old
+ new
@@ -977,21 +977,9 @@
#Expect not to get an event from the choose_action
@driver.ignore_up_to "if_event"
@driver.mexpect("if_event", [Integer, "action", {"from" => nil, "to" => "index"}])
end
- it "Not setting a Goto will result in an exception" do
- expect {
- ctx = flok_new_user File.read('./spec/kern/assets/choose_action_sync_no_goto.rb'), File.read("./spec/kern/assets/test_service/config0.rb")
- ctx.evald %{
- base = _embed("my_controller", 0, {}, null);
-
- //Drain queue
- int_dispatch([]);
- }
- }.to raise_exception
- end
-
it "Does support using a macro that contains current_action" do
ctx = flok_new_user File.read('./spec/kern/assets/current_action_nav.rb')
dump = ctx.evald %{
base = _embed("my_controller", 0, {}, null);