irreverent 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/irreverent/version.rb +1 -1
- data/test/dummy/log/test.log +356 -0
- data/test/flash_test.rb +12 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d57c7d126f4f9b6123b98477e5f79024f391ffbd
|
4
|
+
data.tar.gz: 27655551111e2081cdafb59628f5d3ece1f496c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28e069c045f1cfffeb319ec7f1b3536eed88c9c7b15db460d8d760ccd8af0a2811ed9f49df2b65dc8743a39b16dc63220618c123f0cbb21f9d18eb87e776a619
|
7
|
+
data.tar.gz: 89a80fde4c9c853a4ede3a33ec757da06782e9c21571139f349d7946b7ed23301834f59d578083a9f65e19faae0ce3b0d3c86a2c858431fe8e7746b977002a19
|
data/lib/irreverent/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -709,3 +709,359 @@ Processing by UsersController#update as HTML
|
|
709
709
|
Redirected to http://test.host/users/1
|
710
710
|
Completed 302 Found in 6ms (ActiveRecord: 0.7ms)
|
711
711
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
712
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
713
|
+
----------------------------------------------------------------
|
714
|
+
FlashTest: test_set_custom_notice_message_on_successful_creation
|
715
|
+
----------------------------------------------------------------
|
716
|
+
Processing by UsersController#create as HTML
|
717
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
718
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
719
|
+
[1m[36mSQL (21.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 12 Feb 2014 16:06:50 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:06:50 UTC +00:00]]
|
720
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
721
|
+
Redirected to http://test.host/users/1
|
722
|
+
Completed 302 Found in 44ms (ActiveRecord: 22.1ms)
|
723
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
724
|
+
[1m[35m (0.1ms)[0m begin transaction
|
725
|
+
-------------------------------------------------------------
|
726
|
+
FlashTest: test_sets_alert_messages_from_the_controller_scope
|
727
|
+
-------------------------------------------------------------
|
728
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
729
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Feb 2014 16:06:50 UTC +00:00], ["name", "Chuck Norris"], ["updated_at", Wed, 12 Feb 2014 16:06:50 UTC +00:00]]
|
730
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
731
|
+
Processing by UsersController#destroy as HTML
|
732
|
+
Parameters: {"id"=>"1"}
|
733
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
734
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
735
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
736
|
+
Redirected to http://test.host/users/1
|
737
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.2ms)
|
738
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
739
|
+
[1m[35m (0.0ms)[0m begin transaction
|
740
|
+
----------------------------------------------------------
|
741
|
+
FlashTest: test_sets_notice_message_on_successful_creation
|
742
|
+
----------------------------------------------------------
|
743
|
+
Processing by UsersController#create as HTML
|
744
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
745
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
746
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Feb 2014 16:06:50 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:06:50 UTC +00:00]]
|
747
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
748
|
+
Redirected to http://test.host/users/1
|
749
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
|
750
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
751
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
752
|
+
---------------------------------------------------------
|
753
|
+
FlashTest: test_sets_notice_message_on_successful_destroy
|
754
|
+
---------------------------------------------------------
|
755
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
756
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 12 Feb 2014 16:06:50 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:06:50 UTC +00:00]]
|
757
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
758
|
+
Processing by UsersController#destroy as HTML
|
759
|
+
Parameters: {"id"=>"1"}
|
760
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
761
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
762
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
763
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
764
|
+
Redirected to http://test.host/users
|
765
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
766
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
767
|
+
[1m[35m (0.0ms)[0m begin transaction
|
768
|
+
--------------------------------------------------------
|
769
|
+
FlashTest: test_sets_notice_message_on_successful_update
|
770
|
+
--------------------------------------------------------
|
771
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
772
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Feb 2014 16:06:50 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:06:50 UTC +00:00]]
|
773
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
774
|
+
Processing by UsersController#update as HTML
|
775
|
+
Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
|
776
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
777
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
778
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["name", "Another John Doe"], ["updated_at", Wed, 12 Feb 2014 16:06:50 UTC +00:00]]
|
779
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
780
|
+
Redirected to http://test.host/users/1
|
781
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
|
782
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
783
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
784
|
+
----------------------------------------------------------------
|
785
|
+
FlashTest: test_set_custom_notice_message_on_successful_creation
|
786
|
+
----------------------------------------------------------------
|
787
|
+
Processing by UsersController#create as HTML
|
788
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
789
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
790
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 12 Feb 2014 16:07:10 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:07:10 UTC +00:00]]
|
791
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
792
|
+
Redirected to http://test.host/users/1
|
793
|
+
Completed 302 Found in 25ms (ActiveRecord: 3.0ms)
|
794
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
795
|
+
[1m[35m (0.0ms)[0m begin transaction
|
796
|
+
-------------------------------------------------------------
|
797
|
+
FlashTest: test_sets_alert_messages_from_the_controller_scope
|
798
|
+
-------------------------------------------------------------
|
799
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
800
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Feb 2014 16:07:10 UTC +00:00], ["name", "Chuck Norris"], ["updated_at", Wed, 12 Feb 2014 16:07:10 UTC +00:00]]
|
801
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
802
|
+
Processing by UsersController#destroy as HTML
|
803
|
+
Parameters: {"id"=>"1"}
|
804
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
805
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
806
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
807
|
+
Redirected to http://test.host/users/1
|
808
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.2ms)
|
809
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
810
|
+
[1m[35m (0.0ms)[0m begin transaction
|
811
|
+
----------------------------------------------------------
|
812
|
+
FlashTest: test_sets_notice_message_on_successful_creation
|
813
|
+
----------------------------------------------------------
|
814
|
+
Processing by UsersController#create as HTML
|
815
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
816
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
817
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Feb 2014 16:07:10 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:07:10 UTC +00:00]]
|
818
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
819
|
+
Redirected to http://test.host/users/1
|
820
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
|
821
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
822
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
823
|
+
---------------------------------------------------------
|
824
|
+
FlashTest: test_sets_notice_message_on_successful_destroy
|
825
|
+
---------------------------------------------------------
|
826
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
827
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 12 Feb 2014 16:07:10 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:07:10 UTC +00:00]]
|
828
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
829
|
+
Processing by UsersController#destroy as HTML
|
830
|
+
Parameters: {"id"=>"1"}
|
831
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
832
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
833
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
834
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
835
|
+
Redirected to http://test.host/users
|
836
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
837
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
838
|
+
[1m[35m (0.1ms)[0m begin transaction
|
839
|
+
--------------------------------------------------------
|
840
|
+
FlashTest: test_sets_notice_message_on_successful_update
|
841
|
+
--------------------------------------------------------
|
842
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
843
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Feb 2014 16:07:10 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:07:10 UTC +00:00]]
|
844
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
845
|
+
Processing by UsersController#update as HTML
|
846
|
+
Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
|
847
|
+
[1m[35mUser Load (0.0ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
848
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
849
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["name", "Another John Doe"], ["updated_at", Wed, 12 Feb 2014 16:07:10 UTC +00:00]]
|
850
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
851
|
+
Redirected to http://test.host/users/1
|
852
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
|
853
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
854
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
855
|
+
----------------------------------------------------------------
|
856
|
+
FlashTest: test_set_custom_notice_message_on_successful_creation
|
857
|
+
----------------------------------------------------------------
|
858
|
+
Processing by UsersController#create as HTML
|
859
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
860
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
861
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 12 Feb 2014 16:07:38 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:07:38 UTC +00:00]]
|
862
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
863
|
+
Redirected to http://test.host/users/1
|
864
|
+
Completed 302 Found in 25ms (ActiveRecord: 3.1ms)
|
865
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
866
|
+
[1m[35m (0.0ms)[0m begin transaction
|
867
|
+
-------------------------------------------------------------
|
868
|
+
FlashTest: test_sets_alert_messages_from_the_controller_scope
|
869
|
+
-------------------------------------------------------------
|
870
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
871
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Feb 2014 16:07:38 UTC +00:00], ["name", "Chuck Norris"], ["updated_at", Wed, 12 Feb 2014 16:07:38 UTC +00:00]]
|
872
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
873
|
+
Processing by UsersController#destroy as HTML
|
874
|
+
Parameters: {"id"=>"1"}
|
875
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
876
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
877
|
+
[1m[35m (0.0ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
878
|
+
Redirected to http://test.host/users/1
|
879
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.2ms)
|
880
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
881
|
+
[1m[35m (0.0ms)[0m begin transaction
|
882
|
+
----------------------------------------------------------
|
883
|
+
FlashTest: test_sets_notice_message_on_successful_creation
|
884
|
+
----------------------------------------------------------
|
885
|
+
Processing by UsersController#create as HTML
|
886
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
887
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
888
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Feb 2014 16:07:38 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:07:38 UTC +00:00]]
|
889
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
890
|
+
Redirected to http://test.host/users/1
|
891
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
|
892
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
893
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
894
|
+
---------------------------------------------------------
|
895
|
+
FlashTest: test_sets_notice_message_on_successful_destroy
|
896
|
+
---------------------------------------------------------
|
897
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
898
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 12 Feb 2014 16:07:38 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:07:38 UTC +00:00]]
|
899
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
900
|
+
Processing by UsersController#destroy as HTML
|
901
|
+
Parameters: {"id"=>"1"}
|
902
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
903
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
904
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
905
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
906
|
+
Redirected to http://test.host/users
|
907
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
908
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
909
|
+
[1m[35m (0.1ms)[0m begin transaction
|
910
|
+
--------------------------------------------------------
|
911
|
+
FlashTest: test_sets_notice_message_on_successful_update
|
912
|
+
--------------------------------------------------------
|
913
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
914
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Feb 2014 16:07:38 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:07:38 UTC +00:00]]
|
915
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
916
|
+
Processing by UsersController#update as HTML
|
917
|
+
Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
|
918
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
919
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
920
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["name", "Another John Doe"], ["updated_at", Wed, 12 Feb 2014 16:07:39 UTC +00:00]]
|
921
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
922
|
+
Redirected to http://test.host/users/1
|
923
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
|
924
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
925
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
926
|
+
----------------------------------------------------------------
|
927
|
+
FlashTest: test_set_custom_notice_message_on_successful_creation
|
928
|
+
----------------------------------------------------------------
|
929
|
+
Processing by UsersController#create as HTML
|
930
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
931
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
932
|
+
[1m[36mSQL (2.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 12 Feb 2014 16:15:29 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:15:29 UTC +00:00]]
|
933
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
934
|
+
Redirected to http://test.host/users/1
|
935
|
+
Completed 302 Found in 25ms (ActiveRecord: 3.1ms)
|
936
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
937
|
+
[1m[35m (0.0ms)[0m begin transaction
|
938
|
+
-------------------------------------------------------------
|
939
|
+
FlashTest: test_sets_alert_messages_from_the_controller_scope
|
940
|
+
-------------------------------------------------------------
|
941
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
942
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Feb 2014 16:15:29 UTC +00:00], ["name", "Chuck Norris"], ["updated_at", Wed, 12 Feb 2014 16:15:29 UTC +00:00]]
|
943
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
944
|
+
Processing by UsersController#destroy as HTML
|
945
|
+
Parameters: {"id"=>"1"}
|
946
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
947
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
948
|
+
[1m[35m (0.1ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
949
|
+
Redirected to http://test.host/users/1
|
950
|
+
Completed 302 Found in 8ms (ActiveRecord: 0.3ms)
|
951
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
952
|
+
[1m[35m (0.0ms)[0m begin transaction
|
953
|
+
----------------------------------------------------------
|
954
|
+
FlashTest: test_sets_notice_message_on_successful_creation
|
955
|
+
----------------------------------------------------------
|
956
|
+
Processing by UsersController#create as HTML
|
957
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
958
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
959
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Feb 2014 16:15:29 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:15:29 UTC +00:00]]
|
960
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
961
|
+
Redirected to http://test.host/users/1
|
962
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
|
963
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
964
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
965
|
+
---------------------------------------------------------
|
966
|
+
FlashTest: test_sets_notice_message_on_successful_destroy
|
967
|
+
---------------------------------------------------------
|
968
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
969
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", Wed, 12 Feb 2014 16:15:29 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:15:29 UTC +00:00]]
|
970
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
971
|
+
Processing by UsersController#destroy as HTML
|
972
|
+
Parameters: {"id"=>"1"}
|
973
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", "1"]]
|
974
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
975
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "users" WHERE "users"."id" = ?[0m [["id", 1]]
|
976
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
977
|
+
Redirected to http://test.host/users
|
978
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
979
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
980
|
+
[1m[35m (0.0ms)[0m begin transaction
|
981
|
+
--------------------------------------------------------
|
982
|
+
FlashTest: test_sets_notice_message_on_successful_update
|
983
|
+
--------------------------------------------------------
|
984
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
985
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Wed, 12 Feb 2014 16:15:29 UTC +00:00], ["name", "John Doe"], ["updated_at", Wed, 12 Feb 2014 16:15:29 UTC +00:00]]
|
986
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
987
|
+
Processing by UsersController#update as HTML
|
988
|
+
Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
|
989
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
|
990
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
991
|
+
[1m[35mSQL (0.2ms)[0m UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["name", "Another John Doe"], ["updated_at", Wed, 12 Feb 2014 16:15:29 UTC +00:00]]
|
992
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
993
|
+
Redirected to http://test.host/users/1
|
994
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
|
995
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
996
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
997
|
+
[1m[35m (0.1ms)[0m begin transaction
|
998
|
+
----------------------------------------------------------------
|
999
|
+
FlashTest: test_set_custom_notice_message_on_successful_creation
|
1000
|
+
----------------------------------------------------------------
|
1001
|
+
Processing by UsersController#create as HTML
|
1002
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
1003
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1004
|
+
[1m[35mSQL (2.2ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-09 11:53:34.037242"], ["name", "John Doe"], ["updated_at", "2014-04-09 11:53:34.037242"]]
|
1005
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1006
|
+
Redirected to http://test.host/users/1
|
1007
|
+
Completed 302 Found in 20ms (ActiveRecord: 2.6ms)
|
1008
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1009
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1010
|
+
-------------------------------------------------------------
|
1011
|
+
FlashTest: test_sets_alert_messages_from_the_controller_scope
|
1012
|
+
-------------------------------------------------------------
|
1013
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1014
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-09 11:53:34.053105"], ["name", "Chuck Norris"], ["updated_at", "2014-04-09 11:53:34.053105"]]
|
1015
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1016
|
+
Processing by UsersController#destroy as HTML
|
1017
|
+
Parameters: {"id"=>"1"}
|
1018
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1019
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1020
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
1021
|
+
Redirected to http://test.host/users/1
|
1022
|
+
Completed 302 Found in 7ms (ActiveRecord: 0.3ms)
|
1023
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1024
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
1025
|
+
----------------------------------------------------------
|
1026
|
+
FlashTest: test_sets_notice_message_on_successful_creation
|
1027
|
+
----------------------------------------------------------
|
1028
|
+
Processing by UsersController#create as HTML
|
1029
|
+
Parameters: {"user"=>{"name"=>"John Doe"}}
|
1030
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1031
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-09 11:53:34.065141"], ["name", "John Doe"], ["updated_at", "2014-04-09 11:53:34.065141"]]
|
1032
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1033
|
+
Redirected to http://test.host/users/1
|
1034
|
+
Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
|
1035
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
1036
|
+
[1m[35m (0.0ms)[0m begin transaction
|
1037
|
+
---------------------------------------------------------
|
1038
|
+
FlashTest: test_sets_notice_message_on_successful_destroy
|
1039
|
+
---------------------------------------------------------
|
1040
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1041
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-09 11:53:34.071305"], ["name", "John Doe"], ["updated_at", "2014-04-09 11:53:34.071305"]]
|
1042
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1043
|
+
Processing by UsersController#destroy as HTML
|
1044
|
+
Parameters: {"id"=>"1"}
|
1045
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
|
1046
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
1047
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
|
1048
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1049
|
+
Redirected to http://test.host/users
|
1050
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
|
1051
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1052
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
1053
|
+
--------------------------------------------------------
|
1054
|
+
FlashTest: test_sets_notice_message_on_successful_update
|
1055
|
+
--------------------------------------------------------
|
1056
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
1057
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?)[0m [["created_at", "2014-04-09 11:53:34.076456"], ["name", "John Doe"], ["updated_at", "2014-04-09 11:53:34.076456"]]
|
1058
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1059
|
+
Processing by UsersController#update as HTML
|
1060
|
+
Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
|
1061
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
1062
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1063
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1[0m [["name", "Another John Doe"], ["updated_at", "2014-04-09 11:53:34.079071"]]
|
1064
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
1065
|
+
Redirected to http://test.host/users/1
|
1066
|
+
Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
|
1067
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
data/test/flash_test.rb
CHANGED
@@ -8,6 +8,18 @@ class FlashTest < ActionController::TestCase
|
|
8
8
|
assert_equal 'User was successfully created', flash[:notice]
|
9
9
|
end
|
10
10
|
|
11
|
+
test 'set custom notice message on successful creation' do
|
12
|
+
begin
|
13
|
+
I18n.backend.store_translations :en,
|
14
|
+
flash: { users: { create: { notice: 'Custom create message' } } }
|
15
|
+
|
16
|
+
post :create, user: { name: 'John Doe' }
|
17
|
+
assert_equal 'Custom create message', flash[:notice]
|
18
|
+
ensure
|
19
|
+
I18n.reload!
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
11
23
|
test 'sets notice message on successful update' do
|
12
24
|
user = User.create!(name: 'John Doe')
|
13
25
|
put :update, id: user.id, user: { name: 'Another John Doe' }
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: irreverent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Catena
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.0
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.0
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.2.
|
127
|
+
rubygems_version: 2.2.2
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: Improvements for Rails respond_with behaviour
|