|
@@ -94,10 +94,6 @@ describe "verlauf schüler" do
|
|
last_response.body.must_include "Bin hier"
|
|
last_response.body.must_include "Bin hier"
|
|
end
|
|
end
|
|
end
|
|
end
|
|
-
|
|
|
|
- after do
|
|
|
|
- Schueler.dataset.destroy
|
|
|
|
- end
|
|
|
|
end
|
|
end
|
|
|
|
|
|
describe "schüler besucht seite zur passiven Wahl" do
|
|
describe "schüler besucht seite zur passiven Wahl" do
|
|
@@ -112,9 +108,9 @@ describe "verlauf schüler" do
|
|
|
|
|
|
it "schüler gibt code auf startseite ein und wird umgeleitet" do
|
|
it "schüler gibt code auf startseite ein und wird umgeleitet" do
|
|
Time.stub :now, Time.parse("Oct 1, 2016, 17:00") do
|
|
Time.stub :now, Time.parse("Oct 1, 2016, 17:00") do
|
|
- post "/hashid", params={:hashid => "a"}
|
|
|
|
- follow_redirect!
|
|
|
|
- last_response.body.must_include "Hallo A,"
|
|
|
|
|
|
+ post "/hashid", params={:hashid => "a"}
|
|
|
|
+ follow_redirect!
|
|
|
|
+ last_response.body.must_include "Hallo A,"
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
@@ -187,13 +183,6 @@ describe "verlauf schüler" do
|
|
Schuko.count.must_equal 0
|
|
Schuko.count.must_equal 0
|
|
end
|
|
end
|
|
end
|
|
end
|
|
-
|
|
|
|
- after do
|
|
|
|
- Schueler.dataset.destroy
|
|
|
|
- Sprecher.dataset.destroy
|
|
|
|
- Schuko.dataset.destroy
|
|
|
|
- Verbindungslehrer.dataset.destroy
|
|
|
|
- end
|
|
|
|
end
|
|
end
|
|
|
|
|
|
describe "schüler besucht seite nach der wahl" do
|
|
describe "schüler besucht seite nach der wahl" do
|
|
@@ -206,9 +195,9 @@ describe "verlauf schüler" do
|
|
|
|
|
|
it "schüler gibt code auf startseite ein und wird umgeleitet" do
|
|
it "schüler gibt code auf startseite ein und wird umgeleitet" do
|
|
Time.stub :now, Time.parse("Oct 3, 2016, 19:00") do
|
|
Time.stub :now, Time.parse("Oct 3, 2016, 19:00") do
|
|
- post "/hashid", params={:hashid => "a"}
|
|
|
|
- follow_redirect!
|
|
|
|
- last_response.body.must_include "Hallo A,"
|
|
|
|
|
|
+ post "/hashid", params={:hashid => "a"}
|
|
|
|
+ follow_redirect!
|
|
|
|
+ last_response.body.must_include "Hallo A,"
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
@@ -231,16 +220,5 @@ describe "verlauf schüler" do
|
|
Verbindungslehrer.count.must_equal 0
|
|
Verbindungslehrer.count.must_equal 0
|
|
end
|
|
end
|
|
end
|
|
end
|
|
-
|
|
|
|
- after do
|
|
|
|
- Schueler.dataset.destroy
|
|
|
|
- Sprecher.dataset.destroy
|
|
|
|
- Schuko.dataset.destroy
|
|
|
|
- Verbindungslehrer.dataset.destroy
|
|
|
|
- end
|
|
|
|
- end
|
|
|
|
-
|
|
|
|
- after do
|
|
|
|
- Lehrer.dataset.destroy
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|