remote_partial 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,7 @@ module RemotePartial
33
33
  end
34
34
 
35
35
  def self.root
36
- location = Rails.env == 'test' ? 'test/fixtures' : 'db'
36
+ location = Rails.env == 'test' ? 'test/db' : 'db'
37
37
  File.expand_path(location, Rails.root)
38
38
  end
39
39
 
@@ -1,10 +1,18 @@
1
1
  module RemotePartial
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
4
4
 
5
5
  # History
6
6
  # =======
7
7
  #
8
+ # 0.3.1 Move location where db is stored in test environment
9
+ # ----------------------------------------------------------
10
+ # The yaml file created by the Partial model during tests, had been put into
11
+ # test/fixtures, but this is the wrong place because this is not a fixture. In
12
+ # apps that use fixtures, the app would try to load the file as a fixture.
13
+ #
14
+ # The test yml file is now stored as test/db/partials.yml
15
+ #
8
16
  # 0.3.1 Remove migration file
9
17
  # ---------------------------
10
18
  # Migration file is no longer needed but had been left in code.
@@ -25622,3 +25622,621 @@ stub_request(:get, "http://www.warwickshire.gov.uk/").
25622
25622
  -----------------------------
25623
25623
  RemotePartialTest: test_truth
25624
25624
  -----------------------------
25625
+ Unable to retrieve remote partial at http://www.timeanddate.com/worldclock/city.html?n=136: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.timeanddate.com/worldclock/city.html?n=136 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
25626
+
25627
+ You can stub this request with the following snippet:
25628
+
25629
+ stub_request(:get, "http://www.timeanddate.com/worldclock/city.html?n=136").
25630
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
25631
+ to_return(:status => 200, :body => "", :headers => {})
25632
+
25633
+ ============================================================>
25634
+ Unable to retrieve remote partial at http://www.ruby-lang.org/en/: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.ruby-lang.org/en/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
25635
+
25636
+ You can stub this request with the following snippet:
25637
+
25638
+ stub_request(:get, "http://www.ruby-lang.org/en/").
25639
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
25640
+ to_return(:status => 200, :body => "", :headers => {})
25641
+
25642
+ ============================================================>
25643
+ -------------------------------
25644
+ DemosControllerTest: test_index
25645
+ -------------------------------
25646
+ Processing by DemosController#index as HTML
25647
+ Rendered demos/index.html.erb within layouts/application (112.1ms)
25648
+ Completed 200 OK in 163ms (Views: 162.3ms)
25649
+ ------------------------------------
25650
+ DemosControllerTest: test_show_fixed
25651
+ ------------------------------------
25652
+ Processing by DemosController#show as HTML
25653
+ Parameters: {"id"=>"fixed"}
25654
+ Rendered remote_partials/_fixed.html.erb (0.4ms)
25655
+ Rendered demos/_fixed.html.erb (7.9ms)
25656
+ Completed 200 OK in 35ms (Views: 34.9ms)
25657
+ -----------------------------------------------------------
25658
+ DemosHelperTest: test_render_remote_partial_with_no_partial
25659
+ -----------------------------------------------------------
25660
+ --------------------------------------
25661
+ RemotePartial::BuilderTest: test_build
25662
+ --------------------------------------
25663
+ ------------------------------------------------------------
25664
+ RemotePartial::BuilderTest: test_build_with_existing_partial
25665
+ ------------------------------------------------------------
25666
+ ------------------------------------------------------------------
25667
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
25668
+ ------------------------------------------------------------------
25669
+ ------------------------------------------------------
25670
+ RemotePartial::BuilderTest: test_build_with_http_error
25671
+ ------------------------------------------------------
25672
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
25673
+ ---------------------------------------------------------
25674
+ RemotePartial::BuilderTest: test_create_or_update_partial
25675
+ ---------------------------------------------------------
25676
+ -----------------------------------------------------------------------------------
25677
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
25678
+ -----------------------------------------------------------------------------------
25679
+ ----------------------------------------------------------------------------
25680
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
25681
+ ----------------------------------------------------------------------------
25682
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
25683
+ ----------------------------------------------------------------
25684
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
25685
+ ----------------------------------------------------------------
25686
+ -------------------------------------------------
25687
+ RemotePartial::PartialTest: test_output_file_name
25688
+ -------------------------------------------------
25689
+ --------------------------------------------------------
25690
+ RemotePartial::PartialTest: test_stale_at_gets_into_file
25691
+ --------------------------------------------------------
25692
+ --------------------------------------------------------
25693
+ RemotePartial::PartialTest: test_stale_at_gets_into_hash
25694
+ --------------------------------------------------------
25695
+ ------------------------------------------------------------------
25696
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
25697
+ ------------------------------------------------------------------
25698
+ --------------------------------------------------------
25699
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
25700
+ --------------------------------------------------------
25701
+ --------------------------------------------
25702
+ RemotePartial::PartialTest: test_update_file
25703
+ --------------------------------------------
25704
+ ------------------------------------------------------------------------
25705
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
25706
+ ------------------------------------------------------------------------
25707
+ ------------------------------------------------
25708
+ RemotePartial::PartialTest: test_update_stale_at
25709
+ ------------------------------------------------
25710
+ --------------------------------------------------
25711
+ RemotePartial::PartialTest: test_update_stale_file
25712
+ --------------------------------------------------
25713
+ -----------------------------------------------------------------
25714
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
25715
+ -----------------------------------------------------------------
25716
+ -----------------------------------------------------------
25717
+ RemotePartial::ResourceManagerTest: test_connection_failure
25718
+ -----------------------------------------------------------
25719
+ ------------------------------------------------------------------------------
25720
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
25721
+ ------------------------------------------------------------------------------
25722
+ -------------------------------------------------
25723
+ RemotePartial::ResourceManagerTest: test_get_page
25724
+ -------------------------------------------------
25725
+ ------------------------------------------------
25726
+ RemotePartial::ResourceManagerTest: test_get_raw
25727
+ ------------------------------------------------
25728
+ ---------------------------------------------
25729
+ RemotePartial::ResourceManagerTest: test_html
25730
+ ---------------------------------------------
25731
+ --------------------------------------------------------
25732
+ RemotePartial::ResourceManagerTest: test_html_with_limit
25733
+ --------------------------------------------------------
25734
+ --------------------------------------------------------------------------------------
25735
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
25736
+ --------------------------------------------------------------------------------------
25737
+ --------------------------------------------------
25738
+ RemotePartial::ResourceManagerTest: test_output_to
25739
+ --------------------------------------------------
25740
+ ---------------------------------------------
25741
+ RemotePartial::ResourceManagerTest: test_stub
25742
+ ---------------------------------------------
25743
+ ----------------------------------------
25744
+ RemotePartial::YamlStoreTest: test_count
25745
+ ----------------------------------------
25746
+ -----------------------------------------
25747
+ RemotePartial::YamlStoreTest: test_create
25748
+ -----------------------------------------
25749
+ ---------------------------------------------
25750
+ RemotePartial::YamlStoreTest: test_created_at
25751
+ ---------------------------------------------
25752
+ -------------------------------------------------------------------
25753
+ RemotePartial::YamlStoreTest: test_created_at_not_updated_if_exists
25754
+ -------------------------------------------------------------------
25755
+ --------------------------------------
25756
+ RemotePartial::YamlStoreTest: test_dir
25757
+ --------------------------------------
25758
+ ---------------------------------------
25759
+ RemotePartial::YamlStoreTest: test_file
25760
+ ---------------------------------------
25761
+ ---------------------------------------
25762
+ RemotePartial::YamlStoreTest: test_find
25763
+ ---------------------------------------
25764
+ -------------------------------------------------------
25765
+ RemotePartial::YamlStoreTest: test_find_when_none_exist
25766
+ -------------------------------------------------------
25767
+ ---------------------------------------------------
25768
+ RemotePartial::YamlStoreTest: test_find_with_symbol
25769
+ ---------------------------------------------------
25770
+ -----------------------------------------
25771
+ RemotePartial::YamlStoreTest: test_merge!
25772
+ -----------------------------------------
25773
+ --------------------------------------
25774
+ RemotePartial::YamlStoreTest: test_new
25775
+ --------------------------------------
25776
+ ---------------------------------------
25777
+ RemotePartial::YamlStoreTest: test_read
25778
+ ---------------------------------------
25779
+ -----------------------------------------------------------
25780
+ RemotePartial::YamlStoreTest: test_read_when_no_file_exists
25781
+ -----------------------------------------------------------
25782
+ ---------------------------------------
25783
+ RemotePartial::YamlStoreTest: test_root
25784
+ ---------------------------------------
25785
+ ---------------------------------------
25786
+ RemotePartial::YamlStoreTest: test_save
25787
+ ---------------------------------------
25788
+ ------------------------------------------------------
25789
+ RemotePartial::YamlStoreTest: test_save_without_a_name
25790
+ ------------------------------------------------------
25791
+ ----------------------------------------------
25792
+ RemotePartial::YamlStoreTest: test_string_keys
25793
+ ----------------------------------------------
25794
+ ---------------------------------------------
25795
+ RemotePartial::YamlStoreTest: test_updated_at
25796
+ ---------------------------------------------
25797
+ ------------------------------------------------------------------
25798
+ RemotePartial::YamlStoreTest: test_updated_at_if_updated_if_exists
25799
+ ------------------------------------------------------------------
25800
+ ----------------------------------------
25801
+ RemotePartial::YamlStoreTest: test_write
25802
+ ----------------------------------------
25803
+ ------------------------------
25804
+ RemotePartialTest: test_define
25805
+ ------------------------------
25806
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.warwickshire.gov.uk/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
25807
+
25808
+ You can stub this request with the following snippet:
25809
+
25810
+ stub_request(:get, "http://www.warwickshire.gov.uk/").
25811
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
25812
+ to_return(:status => 200, :body => "", :headers => {})
25813
+
25814
+ ============================================================>
25815
+ -----------------------------------------------
25816
+ RemotePartialTest: test_define_with_string_keys
25817
+ -----------------------------------------------
25818
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.warwickshire.gov.uk/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
25819
+
25820
+ You can stub this request with the following snippet:
25821
+
25822
+ stub_request(:get, "http://www.warwickshire.gov.uk/").
25823
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
25824
+ to_return(:status => 200, :body => "", :headers => {})
25825
+
25826
+ ============================================================>
25827
+ -----------------------------
25828
+ RemotePartialTest: test_truth
25829
+ -----------------------------
25830
+ Unable to retrieve remote partial at http://www.timeanddate.com/worldclock/city.html?n=136: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.timeanddate.com/worldclock/city.html?n=136 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
25831
+
25832
+ You can stub this request with the following snippet:
25833
+
25834
+ stub_request(:get, "http://www.timeanddate.com/worldclock/city.html?n=136").
25835
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
25836
+ to_return(:status => 200, :body => "", :headers => {})
25837
+
25838
+ ============================================================>
25839
+ Unable to retrieve remote partial at http://www.ruby-lang.org/en/: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.ruby-lang.org/en/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
25840
+
25841
+ You can stub this request with the following snippet:
25842
+
25843
+ stub_request(:get, "http://www.ruby-lang.org/en/").
25844
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
25845
+ to_return(:status => 200, :body => "", :headers => {})
25846
+
25847
+ ============================================================>
25848
+ -------------------------------
25849
+ DemosControllerTest: test_index
25850
+ -------------------------------
25851
+ Processing by DemosController#index as HTML
25852
+ Rendered demos/index.html.erb within layouts/application (35.6ms)
25853
+ Completed 200 OK in 50ms (Views: 48.8ms)
25854
+ ------------------------------------
25855
+ DemosControllerTest: test_show_fixed
25856
+ ------------------------------------
25857
+ Processing by DemosController#show as HTML
25858
+ Parameters: {"id"=>"fixed"}
25859
+ Rendered remote_partials/_fixed.html.erb (0.5ms)
25860
+ Rendered demos/_fixed.html.erb (2.8ms)
25861
+ Completed 200 OK in 12ms (Views: 11.6ms)
25862
+ -----------------------------------------------------------
25863
+ DemosHelperTest: test_render_remote_partial_with_no_partial
25864
+ -----------------------------------------------------------
25865
+ --------------------------------------
25866
+ RemotePartial::BuilderTest: test_build
25867
+ --------------------------------------
25868
+ ------------------------------------------------------------
25869
+ RemotePartial::BuilderTest: test_build_with_existing_partial
25870
+ ------------------------------------------------------------
25871
+ ------------------------------------------------------------------
25872
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
25873
+ ------------------------------------------------------------------
25874
+ ------------------------------------------------------
25875
+ RemotePartial::BuilderTest: test_build_with_http_error
25876
+ ------------------------------------------------------
25877
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
25878
+ ---------------------------------------------------------
25879
+ RemotePartial::BuilderTest: test_create_or_update_partial
25880
+ ---------------------------------------------------------
25881
+ -----------------------------------------------------------------------------------
25882
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
25883
+ -----------------------------------------------------------------------------------
25884
+ ----------------------------------------------------------------------------
25885
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
25886
+ ----------------------------------------------------------------------------
25887
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
25888
+ ----------------------------------------------------------------
25889
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
25890
+ ----------------------------------------------------------------
25891
+ -------------------------------------------------
25892
+ RemotePartial::PartialTest: test_output_file_name
25893
+ -------------------------------------------------
25894
+ --------------------------------------------------------
25895
+ RemotePartial::PartialTest: test_stale_at_gets_into_file
25896
+ --------------------------------------------------------
25897
+ --------------------------------------------------------
25898
+ RemotePartial::PartialTest: test_stale_at_gets_into_hash
25899
+ --------------------------------------------------------
25900
+ ------------------------------------------------------------------
25901
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
25902
+ ------------------------------------------------------------------
25903
+ --------------------------------------------------------
25904
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
25905
+ --------------------------------------------------------
25906
+ --------------------------------------------
25907
+ RemotePartial::PartialTest: test_update_file
25908
+ --------------------------------------------
25909
+ ------------------------------------------------------------------------
25910
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
25911
+ ------------------------------------------------------------------------
25912
+ ------------------------------------------------
25913
+ RemotePartial::PartialTest: test_update_stale_at
25914
+ ------------------------------------------------
25915
+ --------------------------------------------------
25916
+ RemotePartial::PartialTest: test_update_stale_file
25917
+ --------------------------------------------------
25918
+ -----------------------------------------------------------------
25919
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
25920
+ -----------------------------------------------------------------
25921
+ -----------------------------------------------------------
25922
+ RemotePartial::ResourceManagerTest: test_connection_failure
25923
+ -----------------------------------------------------------
25924
+ ------------------------------------------------------------------------------
25925
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
25926
+ ------------------------------------------------------------------------------
25927
+ -------------------------------------------------
25928
+ RemotePartial::ResourceManagerTest: test_get_page
25929
+ -------------------------------------------------
25930
+ ------------------------------------------------
25931
+ RemotePartial::ResourceManagerTest: test_get_raw
25932
+ ------------------------------------------------
25933
+ ---------------------------------------------
25934
+ RemotePartial::ResourceManagerTest: test_html
25935
+ ---------------------------------------------
25936
+ --------------------------------------------------------
25937
+ RemotePartial::ResourceManagerTest: test_html_with_limit
25938
+ --------------------------------------------------------
25939
+ --------------------------------------------------------------------------------------
25940
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
25941
+ --------------------------------------------------------------------------------------
25942
+ --------------------------------------------------
25943
+ RemotePartial::ResourceManagerTest: test_output_to
25944
+ --------------------------------------------------
25945
+ ---------------------------------------------
25946
+ RemotePartial::ResourceManagerTest: test_stub
25947
+ ---------------------------------------------
25948
+ ----------------------------------------
25949
+ RemotePartial::YamlStoreTest: test_count
25950
+ ----------------------------------------
25951
+ -----------------------------------------
25952
+ RemotePartial::YamlStoreTest: test_create
25953
+ -----------------------------------------
25954
+ ---------------------------------------------
25955
+ RemotePartial::YamlStoreTest: test_created_at
25956
+ ---------------------------------------------
25957
+ -------------------------------------------------------------------
25958
+ RemotePartial::YamlStoreTest: test_created_at_not_updated_if_exists
25959
+ -------------------------------------------------------------------
25960
+ --------------------------------------
25961
+ RemotePartial::YamlStoreTest: test_dir
25962
+ --------------------------------------
25963
+ ---------------------------------------
25964
+ RemotePartial::YamlStoreTest: test_file
25965
+ ---------------------------------------
25966
+ ---------------------------------------
25967
+ RemotePartial::YamlStoreTest: test_find
25968
+ ---------------------------------------
25969
+ -------------------------------------------------------
25970
+ RemotePartial::YamlStoreTest: test_find_when_none_exist
25971
+ -------------------------------------------------------
25972
+ ---------------------------------------------------
25973
+ RemotePartial::YamlStoreTest: test_find_with_symbol
25974
+ ---------------------------------------------------
25975
+ -----------------------------------------
25976
+ RemotePartial::YamlStoreTest: test_merge!
25977
+ -----------------------------------------
25978
+ --------------------------------------
25979
+ RemotePartial::YamlStoreTest: test_new
25980
+ --------------------------------------
25981
+ ---------------------------------------
25982
+ RemotePartial::YamlStoreTest: test_read
25983
+ ---------------------------------------
25984
+ -----------------------------------------------------------
25985
+ RemotePartial::YamlStoreTest: test_read_when_no_file_exists
25986
+ -----------------------------------------------------------
25987
+ ---------------------------------------
25988
+ RemotePartial::YamlStoreTest: test_root
25989
+ ---------------------------------------
25990
+ ---------------------------------------
25991
+ RemotePartial::YamlStoreTest: test_save
25992
+ ---------------------------------------
25993
+ ------------------------------------------------------
25994
+ RemotePartial::YamlStoreTest: test_save_without_a_name
25995
+ ------------------------------------------------------
25996
+ ----------------------------------------------
25997
+ RemotePartial::YamlStoreTest: test_string_keys
25998
+ ----------------------------------------------
25999
+ ---------------------------------------------
26000
+ RemotePartial::YamlStoreTest: test_updated_at
26001
+ ---------------------------------------------
26002
+ ------------------------------------------------------------------
26003
+ RemotePartial::YamlStoreTest: test_updated_at_if_updated_if_exists
26004
+ ------------------------------------------------------------------
26005
+ ----------------------------------------
26006
+ RemotePartial::YamlStoreTest: test_write
26007
+ ----------------------------------------
26008
+ ------------------------------
26009
+ RemotePartialTest: test_define
26010
+ ------------------------------
26011
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.warwickshire.gov.uk/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
26012
+
26013
+ You can stub this request with the following snippet:
26014
+
26015
+ stub_request(:get, "http://www.warwickshire.gov.uk/").
26016
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
26017
+ to_return(:status => 200, :body => "", :headers => {})
26018
+
26019
+ ============================================================>
26020
+ -----------------------------------------------
26021
+ RemotePartialTest: test_define_with_string_keys
26022
+ -----------------------------------------------
26023
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.warwickshire.gov.uk/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
26024
+
26025
+ You can stub this request with the following snippet:
26026
+
26027
+ stub_request(:get, "http://www.warwickshire.gov.uk/").
26028
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
26029
+ to_return(:status => 200, :body => "", :headers => {})
26030
+
26031
+ ============================================================>
26032
+ -----------------------------
26033
+ RemotePartialTest: test_truth
26034
+ -----------------------------
26035
+ Unable to retrieve remote partial at http://www.timeanddate.com/worldclock/city.html?n=136: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.timeanddate.com/worldclock/city.html?n=136 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
26036
+
26037
+ You can stub this request with the following snippet:
26038
+
26039
+ stub_request(:get, "http://www.timeanddate.com/worldclock/city.html?n=136").
26040
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
26041
+ to_return(:status => 200, :body => "", :headers => {})
26042
+
26043
+ ============================================================>
26044
+ Unable to retrieve remote partial at http://www.ruby-lang.org/en/: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.ruby-lang.org/en/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
26045
+
26046
+ You can stub this request with the following snippet:
26047
+
26048
+ stub_request(:get, "http://www.ruby-lang.org/en/").
26049
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
26050
+ to_return(:status => 200, :body => "", :headers => {})
26051
+
26052
+ ============================================================>
26053
+ -------------------------------
26054
+ DemosControllerTest: test_index
26055
+ -------------------------------
26056
+ Processing by DemosController#index as HTML
26057
+ Rendered demos/index.html.erb within layouts/application (36.5ms)
26058
+ Completed 200 OK in 59ms (Views: 58.2ms)
26059
+ ------------------------------------
26060
+ DemosControllerTest: test_show_fixed
26061
+ ------------------------------------
26062
+ Processing by DemosController#show as HTML
26063
+ Parameters: {"id"=>"fixed"}
26064
+ Rendered remote_partials/_fixed.html.erb (0.6ms)
26065
+ Rendered demos/_fixed.html.erb (3.0ms)
26066
+ Completed 200 OK in 12ms (Views: 11.4ms)
26067
+ -----------------------------------------------------------
26068
+ DemosHelperTest: test_render_remote_partial_with_no_partial
26069
+ -----------------------------------------------------------
26070
+ --------------------------------------
26071
+ RemotePartial::BuilderTest: test_build
26072
+ --------------------------------------
26073
+ ------------------------------------------------------------
26074
+ RemotePartial::BuilderTest: test_build_with_existing_partial
26075
+ ------------------------------------------------------------
26076
+ ------------------------------------------------------------------
26077
+ RemotePartial::BuilderTest: test_build_with_existing_stale_partial
26078
+ ------------------------------------------------------------------
26079
+ ------------------------------------------------------
26080
+ RemotePartial::BuilderTest: test_build_with_http_error
26081
+ ------------------------------------------------------
26082
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
26083
+ ---------------------------------------------------------
26084
+ RemotePartial::BuilderTest: test_create_or_update_partial
26085
+ ---------------------------------------------------------
26086
+ -----------------------------------------------------------------------------------
26087
+ RemotePartial::BuilderTest: test_create_or_update_partial_updates_if_partial_exists
26088
+ -----------------------------------------------------------------------------------
26089
+ ----------------------------------------------------------------------------
26090
+ RemotePartial::BuilderTest: test_stale_at_not_modified_if_unable_to_retrieve
26091
+ ----------------------------------------------------------------------------
26092
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<Net::HTTPBadRequest 400 readbody=true>
26093
+ ----------------------------------------------------------------
26094
+ RemotePartial::ExceptionTest: test_remote_partial_retrival_error
26095
+ ----------------------------------------------------------------
26096
+ -------------------------------------------------
26097
+ RemotePartial::PartialTest: test_output_file_name
26098
+ -------------------------------------------------
26099
+ --------------------------------------------------------
26100
+ RemotePartial::PartialTest: test_stale_at_gets_into_file
26101
+ --------------------------------------------------------
26102
+ --------------------------------------------------------
26103
+ RemotePartial::PartialTest: test_stale_at_gets_into_hash
26104
+ --------------------------------------------------------
26105
+ ------------------------------------------------------------------
26106
+ RemotePartial::PartialTest: test_stale_at_not_updated_unless_stale
26107
+ ------------------------------------------------------------------
26108
+ --------------------------------------------------------
26109
+ RemotePartial::PartialTest: test_stale_at_reset_if_stale
26110
+ --------------------------------------------------------
26111
+ --------------------------------------------
26112
+ RemotePartial::PartialTest: test_update_file
26113
+ --------------------------------------------
26114
+ ------------------------------------------------------------------------
26115
+ RemotePartial::PartialTest: test_update_file_not_affected_by_stale_state
26116
+ ------------------------------------------------------------------------
26117
+ ------------------------------------------------
26118
+ RemotePartial::PartialTest: test_update_stale_at
26119
+ ------------------------------------------------
26120
+ --------------------------------------------------
26121
+ RemotePartial::PartialTest: test_update_stale_file
26122
+ --------------------------------------------------
26123
+ -----------------------------------------------------------------
26124
+ RemotePartial::PartialTest: test_update_stale_file_when_not_stale
26125
+ -----------------------------------------------------------------
26126
+ -----------------------------------------------------------
26127
+ RemotePartial::ResourceManagerTest: test_connection_failure
26128
+ -----------------------------------------------------------
26129
+ ------------------------------------------------------------------------------
26130
+ RemotePartial::ResourceManagerTest: test_connection_failure_due_to_invalid_url
26131
+ ------------------------------------------------------------------------------
26132
+ -------------------------------------------------
26133
+ RemotePartial::ResourceManagerTest: test_get_page
26134
+ -------------------------------------------------
26135
+ ------------------------------------------------
26136
+ RemotePartial::ResourceManagerTest: test_get_raw
26137
+ ------------------------------------------------
26138
+ ---------------------------------------------
26139
+ RemotePartial::ResourceManagerTest: test_html
26140
+ ---------------------------------------------
26141
+ --------------------------------------------------------
26142
+ RemotePartial::ResourceManagerTest: test_html_with_limit
26143
+ --------------------------------------------------------
26144
+ --------------------------------------------------------------------------------------
26145
+ RemotePartial::ResourceManagerTest: test_html_with_limit_that_returns_multiple_matches
26146
+ --------------------------------------------------------------------------------------
26147
+ --------------------------------------------------
26148
+ RemotePartial::ResourceManagerTest: test_output_to
26149
+ --------------------------------------------------
26150
+ ---------------------------------------------
26151
+ RemotePartial::ResourceManagerTest: test_stub
26152
+ ---------------------------------------------
26153
+ ----------------------------------------
26154
+ RemotePartial::YamlStoreTest: test_count
26155
+ ----------------------------------------
26156
+ -----------------------------------------
26157
+ RemotePartial::YamlStoreTest: test_create
26158
+ -----------------------------------------
26159
+ ---------------------------------------------
26160
+ RemotePartial::YamlStoreTest: test_created_at
26161
+ ---------------------------------------------
26162
+ -------------------------------------------------------------------
26163
+ RemotePartial::YamlStoreTest: test_created_at_not_updated_if_exists
26164
+ -------------------------------------------------------------------
26165
+ ------------------------------------------
26166
+ RemotePartial::YamlStoreTest: test_db_path
26167
+ ------------------------------------------
26168
+ --------------------------------------
26169
+ RemotePartial::YamlStoreTest: test_dir
26170
+ --------------------------------------
26171
+ ---------------------------------------
26172
+ RemotePartial::YamlStoreTest: test_file
26173
+ ---------------------------------------
26174
+ ---------------------------------------
26175
+ RemotePartial::YamlStoreTest: test_find
26176
+ ---------------------------------------
26177
+ -------------------------------------------------------
26178
+ RemotePartial::YamlStoreTest: test_find_when_none_exist
26179
+ -------------------------------------------------------
26180
+ ---------------------------------------------------
26181
+ RemotePartial::YamlStoreTest: test_find_with_symbol
26182
+ ---------------------------------------------------
26183
+ -----------------------------------------
26184
+ RemotePartial::YamlStoreTest: test_merge!
26185
+ -----------------------------------------
26186
+ --------------------------------------
26187
+ RemotePartial::YamlStoreTest: test_new
26188
+ --------------------------------------
26189
+ ---------------------------------------
26190
+ RemotePartial::YamlStoreTest: test_read
26191
+ ---------------------------------------
26192
+ -----------------------------------------------------------
26193
+ RemotePartial::YamlStoreTest: test_read_when_no_file_exists
26194
+ -----------------------------------------------------------
26195
+ ---------------------------------------
26196
+ RemotePartial::YamlStoreTest: test_root
26197
+ ---------------------------------------
26198
+ ---------------------------------------
26199
+ RemotePartial::YamlStoreTest: test_save
26200
+ ---------------------------------------
26201
+ ------------------------------------------------------
26202
+ RemotePartial::YamlStoreTest: test_save_without_a_name
26203
+ ------------------------------------------------------
26204
+ ----------------------------------------------
26205
+ RemotePartial::YamlStoreTest: test_string_keys
26206
+ ----------------------------------------------
26207
+ ---------------------------------------------
26208
+ RemotePartial::YamlStoreTest: test_updated_at
26209
+ ---------------------------------------------
26210
+ ------------------------------------------------------------------
26211
+ RemotePartial::YamlStoreTest: test_updated_at_if_updated_if_exists
26212
+ ------------------------------------------------------------------
26213
+ ----------------------------------------
26214
+ RemotePartial::YamlStoreTest: test_write
26215
+ ----------------------------------------
26216
+ ------------------------------
26217
+ RemotePartialTest: test_define
26218
+ ------------------------------
26219
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.warwickshire.gov.uk/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
26220
+
26221
+ You can stub this request with the following snippet:
26222
+
26223
+ stub_request(:get, "http://www.warwickshire.gov.uk/").
26224
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
26225
+ to_return(:status => 200, :body => "", :headers => {})
26226
+
26227
+ ============================================================>
26228
+ -----------------------------------------------
26229
+ RemotePartialTest: test_define_with_string_keys
26230
+ -----------------------------------------------
26231
+ Unable to retrieve remote partial at http://www.warwickshire.gov.uk: #<WebMock::NetConnectNotAllowedError: Real HTTP connections are disabled. Unregistered request: GET http://www.warwickshire.gov.uk/ with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
26232
+
26233
+ You can stub this request with the following snippet:
26234
+
26235
+ stub_request(:get, "http://www.warwickshire.gov.uk/").
26236
+ with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
26237
+ to_return(:status => 200, :body => "", :headers => {})
26238
+
26239
+ ============================================================>
26240
+ -----------------------------
26241
+ RemotePartialTest: test_truth
26242
+ -----------------------------
@@ -8,16 +8,16 @@ module RemotePartial
8
8
  end
9
9
 
10
10
  def test_root
11
- assert_equal(fixture_path, YamlStore.root)
11
+ assert_equal(test_db_path, YamlStore.root)
12
12
  end
13
13
 
14
14
  def test_file
15
- expected = File.expand_path('remote_partial/yaml_stores.yml', fixture_path)
15
+ expected = File.expand_path('remote_partial/yaml_stores.yml', test_db_path)
16
16
  assert_equal(expected, YamlStore.file)
17
17
  end
18
18
 
19
19
  def test_dir
20
- expected = File.expand_path('remote_partial', fixture_path)
20
+ expected = File.expand_path('remote_partial', test_db_path)
21
21
  assert_equal(expected, YamlStore.dir)
22
22
  end
23
23
 
@@ -129,8 +129,8 @@ module RemotePartial
129
129
  assert_equal(expected, YamlStore.string_keys(sample))
130
130
  end
131
131
 
132
- def fixture_path
133
- File.expand_path('../../dummy/test/fixtures', File.dirname(__FILE__))
132
+ def test_db_path
133
+ File.expand_path('../../dummy/test/db', File.dirname(__FILE__))
134
134
  end
135
135
  end
136
136
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote_partial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-12 00:00:00.000000000 Z
12
+ date: 2013-07-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails