<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Rails Forum - Ruby on Rails Help and Discussion Forum - [RSPEC] - Newbie -]]></title>
		<link>http://railsforum.com/viewtopic.php?id=53262</link>
		<description><![CDATA[The most recent posts in [RSPEC] - Newbie -.]]></description>
		<lastBuildDate>Sat, 23 Feb 2013 09:33:41 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [RSPEC] - Newbie -]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=160371#p160371</link>
			<description><![CDATA[<p>Hello</p><p>At the end of the class (I suppose you can put it everywhere inside the class) <br /></p><div class="codebox"><pre><code># Version of your assets, change this if you want to expire all your assets
    config.assets.version = &#039;1.0&#039;

# RSpecs generators
    config.generators do |g|
      g.test_framework :rspec,
                       :fixtures =&gt; false,
                       :view_specs =&gt; false,
                       :helper_specs =&gt; false,
                       :routing_specs =&gt; true,
                       :controller_specs =&gt; true,
                       :request_specs =&gt; true
      g.fixture_replacement :factory_girl, :dir =&gt; &quot;spec/factories&quot;
    end
end</code></pre></div><p>Cheers</p>]]></description>
			<author><![CDATA[dummy@example.com (anso)]]></author>
			<pubDate>Sat, 23 Feb 2013 09:33:41 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=160371#p160371</guid>
		</item>
		<item>
			<title><![CDATA[Re: [RSPEC] - Newbie -]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=160283#p160283</link>
			<description><![CDATA[<p>Thanks.<br />the content of my config/application.rb is<br /></p><div class="codebox"><pre><code>module Tuto3
  class Application &lt; Rails::Application
    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.

    # Custom directories with classes and modules you want to be autoloadable.
    # config.autoload_paths += %W(#{config.root}/extras)

    # Only load the plugins named here, in the order given (default is alphabetical).
    # :all can be used as a placeholder for all plugins not explicitly named.
    # config.plugins = [ :exception_notification, :ssl_requirement, :all ]

    # Activate observers that should always be running.
    # config.active_record.observers = :cacher, :garbage_collector, :forum_observer

    # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
    # Run &quot;rake -D time&quot; for a list of tasks for finding time zone names. Default is UTC.
    # config.time_zone = &#039;Central Time (US &amp; Canada)&#039;

    # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
    # config.i18n.load_path += Dir[Rails.root.join(&#039;my&#039;, &#039;locales&#039;, &#039;*.{rb,yml}&#039;).to_s]
    # config.i18n.default_locale = :de

    # Configure the default encoding used in templates for Ruby 1.9.
    config.encoding = &quot;utf-8&quot;

    # Configure sensitive parameters which will be filtered from the log file.
    config.filter_parameters += [:password]

    # Enable escaping HTML in JSON.
    config.active_support.escape_html_entities_in_json = true

    # Use SQL instead of Active Record&#039;s schema dumper when creating the database.
    # This is necessary if your schema can&#039;t be completely dumped by the schema dumper,
    # like if you have constraints or database-specific column types
    # config.active_record.schema_format = :sql

    # Enforce whitelist mode for mass assignment.
    # This will create an empty whitelist of attributes available for mass-assignment for all models
    # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
    # parameters by using an attr_accessible or attr_protected declaration.
    config.active_record.whitelist_attributes = true

    # Enable the asset pipeline
    config.assets.enabled = true

    # Version of your assets, change this if you want to expire all your assets
    config.assets.version = &#039;1.0&#039;
  end
end</code></pre></div><p>Then where do I put it? within the module, class or outside?</p>]]></description>
			<author><![CDATA[dummy@example.com (rin01)]]></author>
			<pubDate>Fri, 22 Feb 2013 10:58:22 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=160283#p160283</guid>
		</item>
		<item>
			<title><![CDATA[Re: [RSPEC] - Newbie -]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=160279#p160279</link>
			<description><![CDATA[<p>Hello<br />Don&#039;t know why... But you can try to put this piece of code somewhere (I put it at the end) in your config/application.rb<br /></p><div class="codebox"><pre><code># RSpecs generators
    config.generators do |g|
      g.test_framework :rspec,
                       :fixtures =&gt; false,
                       :view_specs =&gt; false,
                       :helper_specs =&gt; false,
                       :routing_specs =&gt; true,
                       :controller_specs =&gt; true,
                       :request_specs =&gt; true
      g.fixture_replacement :factory_girl, :dir =&gt; &quot;spec/factories&quot;
    end</code></pre></div><p>Hope this helps<br />Cheers</p>]]></description>
			<author><![CDATA[dummy@example.com (anso)]]></author>
			<pubDate>Fri, 22 Feb 2013 08:36:30 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=160279#p160279</guid>
		</item>
		<item>
			<title><![CDATA[[RSPEC] - Newbie -]]></title>
			<link>http://railsforum.com/viewtopic.php?pid=160222#p160222</link>
			<description><![CDATA[<p>Hi,</p><p>The following command :</p><p> <span style="color: blue">rails generate model User nom:string email:string</span> </p><p>is supposed to create :</p><p><span style="color: green"><em>invoke&nbsp; active_record<br />&nbsp; &nbsp; &nbsp; create&nbsp; &nbsp; db/migrate/&lt;timestamp&gt;_create_users.rb<br />&nbsp; &nbsp; &nbsp; create&nbsp; &nbsp; app/models/user.rb<br />&nbsp; &nbsp; &nbsp; invoke&nbsp; &nbsp; rspec<br />&nbsp; &nbsp; &nbsp; create&nbsp; &nbsp; &nbsp; spec/models/user_spec.rb<br /></em></span></p><p>But when I launch the command the <strong>spec/models/</strong> is missing!! Why?</p><p>I tried with different versions :</p><p>- rails 3.2.9 &amp; 3.2.11<br />- rspec-rails 2.12.0</p><p>with same results...</p>]]></description>
			<author><![CDATA[dummy@example.com (rin01)]]></author>
			<pubDate>Thu, 21 Feb 2013 10:39:27 +0000</pubDate>
			<guid>http://railsforum.com/viewtopic.php?pid=160222#p160222</guid>
		</item>
	</channel>
</rss>
