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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4aa83104ca79ef9bc7617877e95638bcab89725f
4
- data.tar.gz: 64b74746704a10246b9a0dc4ad57494cf015b34c
3
+ metadata.gz: d57c7d126f4f9b6123b98477e5f79024f391ffbd
4
+ data.tar.gz: 27655551111e2081cdafb59628f5d3ece1f496c2
5
5
  SHA512:
6
- metadata.gz: c105cdcb6ecfda6fcae9d986932170653282b38c17cdf3b5f05d0f9ed1b0ef6adcafdc7dd3b29fe58c38d04ac68b3206536b8cc85d2c0bc0cdd0f9fae9c80652
7
- data.tar.gz: 22f918fe330792f622c60048bc74fb3f132e482d516afa7624674f6e95c835774d67a1e159ad21a61b2108befae0a4f702890d4a0e8dff129e05725f7ddfa8a8
6
+ metadata.gz: 28e069c045f1cfffeb319ec7f1b3536eed88c9c7b15db460d8d760ccd8af0a2811ed9f49df2b65dc8743a39b16dc63220618c123f0cbb21f9d18eb87e776a619
7
+ data.tar.gz: 89a80fde4c9c853a4ede3a33ec757da06782e9c21571139f349d7946b7ed23301834f59d578083a9f65e19faae0ce3b0d3c86a2c858431fe8e7746b977002a19
@@ -1,3 +1,3 @@
1
1
  module Irreverent
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -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
   (0.1ms) rollback transaction
712
+  (0.4ms) begin transaction
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
+  (0.1ms) SAVEPOINT active_record_1
719
+ SQL (21.2ms) 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]]
720
+  (0.1ms) RELEASE SAVEPOINT active_record_1
721
+ Redirected to http://test.host/users/1
722
+ Completed 302 Found in 44ms (ActiveRecord: 22.1ms)
723
+  (0.2ms) rollback transaction
724
+  (0.1ms) begin transaction
725
+ -------------------------------------------------------------
726
+ FlashTest: test_sets_alert_messages_from_the_controller_scope
727
+ -------------------------------------------------------------
728
+  (0.1ms) SAVEPOINT active_record_1
729
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
731
+ Processing by UsersController#destroy as HTML
732
+ Parameters: {"id"=>"1"}
733
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
734
+  (0.0ms) SAVEPOINT active_record_1
735
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
736
+ Redirected to http://test.host/users/1
737
+ Completed 302 Found in 8ms (ActiveRecord: 0.2ms)
738
+  (0.1ms) rollback transaction
739
+  (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
746
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
748
+ Redirected to http://test.host/users/1
749
+ Completed 302 Found in 6ms (ActiveRecord: 0.3ms)
750
+  (0.2ms) rollback transaction
751
+  (0.0ms) begin transaction
752
+ ---------------------------------------------------------
753
+ FlashTest: test_sets_notice_message_on_successful_destroy
754
+ ---------------------------------------------------------
755
+  (0.0ms) SAVEPOINT active_record_1
756
+ SQL (0.2ms) 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]]
757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
758
+ Processing by UsersController#destroy as HTML
759
+ Parameters: {"id"=>"1"}
760
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
761
+  (0.0ms) SAVEPOINT active_record_1
762
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
763
+  (0.0ms) RELEASE SAVEPOINT active_record_1
764
+ Redirected to http://test.host/users
765
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
766
+  (0.1ms) rollback transaction
767
+  (0.0ms) begin transaction
768
+ --------------------------------------------------------
769
+ FlashTest: test_sets_notice_message_on_successful_update
770
+ --------------------------------------------------------
771
+  (0.0ms) SAVEPOINT active_record_1
772
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
774
+ Processing by UsersController#update as HTML
775
+ Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
776
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
777
+  (0.0ms) SAVEPOINT active_record_1
778
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
780
+ Redirected to http://test.host/users/1
781
+ Completed 302 Found in 4ms (ActiveRecord: 0.5ms)
782
+  (0.1ms) rollback transaction
783
+  (0.3ms) begin transaction
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
+  (0.1ms) SAVEPOINT active_record_1
790
+ SQL (2.1ms) 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]]
791
+  (0.1ms) RELEASE SAVEPOINT active_record_1
792
+ Redirected to http://test.host/users/1
793
+ Completed 302 Found in 25ms (ActiveRecord: 3.0ms)
794
+  (0.1ms) rollback transaction
795
+  (0.0ms) begin transaction
796
+ -------------------------------------------------------------
797
+ FlashTest: test_sets_alert_messages_from_the_controller_scope
798
+ -------------------------------------------------------------
799
+  (0.0ms) SAVEPOINT active_record_1
800
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
802
+ Processing by UsersController#destroy as HTML
803
+ Parameters: {"id"=>"1"}
804
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
805
+  (0.0ms) SAVEPOINT active_record_1
806
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
807
+ Redirected to http://test.host/users/1
808
+ Completed 302 Found in 7ms (ActiveRecord: 0.2ms)
809
+  (0.1ms) rollback transaction
810
+  (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
817
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
819
+ Redirected to http://test.host/users/1
820
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
821
+  (0.2ms) rollback transaction
822
+  (0.1ms) begin transaction
823
+ ---------------------------------------------------------
824
+ FlashTest: test_sets_notice_message_on_successful_destroy
825
+ ---------------------------------------------------------
826
+  (0.0ms) SAVEPOINT active_record_1
827
+ SQL (0.2ms) 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]]
828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
829
+ Processing by UsersController#destroy as HTML
830
+ Parameters: {"id"=>"1"}
831
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
832
+  (0.0ms) SAVEPOINT active_record_1
833
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
835
+ Redirected to http://test.host/users
836
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
837
+  (0.1ms) rollback transaction
838
+  (0.1ms) begin transaction
839
+ --------------------------------------------------------
840
+ FlashTest: test_sets_notice_message_on_successful_update
841
+ --------------------------------------------------------
842
+  (0.1ms) SAVEPOINT active_record_1
843
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
845
+ Processing by UsersController#update as HTML
846
+ Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
847
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
848
+  (0.0ms) SAVEPOINT active_record_1
849
+ SQL (0.3ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
851
+ Redirected to http://test.host/users/1
852
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
853
+  (0.1ms) rollback transaction
854
+  (0.3ms) begin transaction
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
+  (0.1ms) SAVEPOINT active_record_1
861
+ SQL (2.1ms) 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]]
862
+  (0.1ms) RELEASE SAVEPOINT active_record_1
863
+ Redirected to http://test.host/users/1
864
+ Completed 302 Found in 25ms (ActiveRecord: 3.1ms)
865
+  (0.1ms) rollback transaction
866
+  (0.0ms) begin transaction
867
+ -------------------------------------------------------------
868
+ FlashTest: test_sets_alert_messages_from_the_controller_scope
869
+ -------------------------------------------------------------
870
+  (0.0ms) SAVEPOINT active_record_1
871
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
873
+ Processing by UsersController#destroy as HTML
874
+ Parameters: {"id"=>"1"}
875
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
876
+  (0.0ms) SAVEPOINT active_record_1
877
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
878
+ Redirected to http://test.host/users/1
879
+ Completed 302 Found in 7ms (ActiveRecord: 0.2ms)
880
+  (0.1ms) rollback transaction
881
+  (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
888
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
890
+ Redirected to http://test.host/users/1
891
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
892
+  (0.2ms) rollback transaction
893
+  (0.0ms) begin transaction
894
+ ---------------------------------------------------------
895
+ FlashTest: test_sets_notice_message_on_successful_destroy
896
+ ---------------------------------------------------------
897
+  (0.0ms) SAVEPOINT active_record_1
898
+ SQL (0.2ms) 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]]
899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
900
+ Processing by UsersController#destroy as HTML
901
+ Parameters: {"id"=>"1"}
902
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
903
+  (0.0ms) SAVEPOINT active_record_1
904
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
906
+ Redirected to http://test.host/users
907
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
908
+  (0.2ms) rollback transaction
909
+  (0.1ms) begin transaction
910
+ --------------------------------------------------------
911
+ FlashTest: test_sets_notice_message_on_successful_update
912
+ --------------------------------------------------------
913
+  (0.0ms) SAVEPOINT active_record_1
914
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
916
+ Processing by UsersController#update as HTML
917
+ Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
918
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
919
+  (0.1ms) SAVEPOINT active_record_1
920
+ SQL (0.3ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
922
+ Redirected to http://test.host/users/1
923
+ Completed 302 Found in 5ms (ActiveRecord: 0.5ms)
924
+  (0.2ms) rollback transaction
925
+  (0.3ms) begin transaction
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
+  (0.1ms) SAVEPOINT active_record_1
932
+ SQL (2.2ms) 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]]
933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
934
+ Redirected to http://test.host/users/1
935
+ Completed 302 Found in 25ms (ActiveRecord: 3.1ms)
936
+  (0.1ms) rollback transaction
937
+  (0.0ms) begin transaction
938
+ -------------------------------------------------------------
939
+ FlashTest: test_sets_alert_messages_from_the_controller_scope
940
+ -------------------------------------------------------------
941
+  (0.1ms) SAVEPOINT active_record_1
942
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
944
+ Processing by UsersController#destroy as HTML
945
+ Parameters: {"id"=>"1"}
946
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
947
+  (0.1ms) SAVEPOINT active_record_1
948
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
949
+ Redirected to http://test.host/users/1
950
+ Completed 302 Found in 8ms (ActiveRecord: 0.3ms)
951
+  (0.1ms) rollback transaction
952
+  (0.0ms) 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
+  (0.1ms) SAVEPOINT active_record_1
959
+ SQL (0.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
961
+ Redirected to http://test.host/users/1
962
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
963
+  (0.1ms) rollback transaction
964
+  (0.0ms) begin transaction
965
+ ---------------------------------------------------------
966
+ FlashTest: test_sets_notice_message_on_successful_destroy
967
+ ---------------------------------------------------------
968
+  (0.0ms) SAVEPOINT active_record_1
969
+ SQL (0.2ms) 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]]
970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
971
+ Processing by UsersController#destroy as HTML
972
+ Parameters: {"id"=>"1"}
973
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
974
+  (0.1ms) SAVEPOINT active_record_1
975
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
976
+  (0.0ms) RELEASE SAVEPOINT active_record_1
977
+ Redirected to http://test.host/users
978
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
979
+  (0.1ms) rollback transaction
980
+  (0.0ms) begin transaction
981
+ --------------------------------------------------------
982
+ FlashTest: test_sets_notice_message_on_successful_update
983
+ --------------------------------------------------------
984
+  (0.0ms) SAVEPOINT active_record_1
985
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
987
+ Processing by UsersController#update as HTML
988
+ Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
989
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "1"]]
990
+  (0.0ms) SAVEPOINT active_record_1
991
+ SQL (0.2ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
993
+ Redirected to http://test.host/users/1
994
+ Completed 302 Found in 4ms (ActiveRecord: 0.4ms)
995
+  (0.1ms) rollback transaction
996
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
997
+  (0.1ms) 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
+  (0.0ms) SAVEPOINT active_record_1
1004
+ SQL (2.2ms) 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
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1006
+ Redirected to http://test.host/users/1
1007
+ Completed 302 Found in 20ms (ActiveRecord: 2.6ms)
1008
+  (0.1ms) rollback transaction
1009
+  (0.1ms) begin transaction
1010
+ -------------------------------------------------------------
1011
+ FlashTest: test_sets_alert_messages_from_the_controller_scope
1012
+ -------------------------------------------------------------
1013
+  (0.1ms) SAVEPOINT active_record_1
1014
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-09 11:53:34.053105"], ["name", "Chuck Norris"], ["updated_at", "2014-04-09 11:53:34.053105"]]
1015
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1016
+ Processing by UsersController#destroy as HTML
1017
+ Parameters: {"id"=>"1"}
1018
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1019
+  (0.0ms) SAVEPOINT active_record_1
1020
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1021
+ Redirected to http://test.host/users/1
1022
+ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)
1023
+  (0.1ms) rollback transaction
1024
+  (0.1ms) begin transaction
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
+  (0.0ms) SAVEPOINT active_record_1
1031
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-09 11:53:34.065141"], ["name", "John Doe"], ["updated_at", "2014-04-09 11:53:34.065141"]]
1032
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1033
+ Redirected to http://test.host/users/1
1034
+ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
1035
+  (0.1ms) rollback transaction
1036
+  (0.0ms) begin transaction
1037
+ ---------------------------------------------------------
1038
+ FlashTest: test_sets_notice_message_on_successful_destroy
1039
+ ---------------------------------------------------------
1040
+  (0.0ms) SAVEPOINT active_record_1
1041
+ SQL (0.1ms) 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
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1043
+ Processing by UsersController#destroy as HTML
1044
+ Parameters: {"id"=>"1"}
1045
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1046
+  (0.0ms) SAVEPOINT active_record_1
1047
+ SQL (0.2ms) DELETE FROM "users" WHERE "users"."id" = ? [["id", 1]]
1048
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1049
+ Redirected to http://test.host/users
1050
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
1051
+  (0.1ms) rollback transaction
1052
+  (0.0ms) begin transaction
1053
+ --------------------------------------------------------
1054
+ FlashTest: test_sets_notice_message_on_successful_update
1055
+ --------------------------------------------------------
1056
+  (0.0ms) SAVEPOINT active_record_1
1057
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", "2014-04-09 11:53:34.076456"], ["name", "John Doe"], ["updated_at", "2014-04-09 11:53:34.076456"]]
1058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1059
+ Processing by UsersController#update as HTML
1060
+ Parameters: {"user"=>{"name"=>"Another John Doe"}, "id"=>"1"}
1061
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
1062
+  (0.1ms) SAVEPOINT active_record_1
1063
+ SQL (0.2ms) UPDATE "users" SET "name" = ?, "updated_at" = ? WHERE "users"."id" = 1 [["name", "Another John Doe"], ["updated_at", "2014-04-09 11:53:34.079071"]]
1064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1065
+ Redirected to http://test.host/users/1
1066
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
1067
+  (0.1ms) rollback transaction
@@ -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.3
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-02-08 00:00:00.000000000 Z
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.2
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.2
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.0
127
+ rubygems_version: 2.2.2
128
128
  signing_key:
129
129
  specification_version: 4
130
130
  summary: Improvements for Rails respond_with behaviour