diff --git a/Fetmailalias, b/Fetmailalias, new file mode 100644 index 0000000..e69de29 diff --git a/Gemfile b/Gemfile index a2310d2..ac707dc 100755 --- a/Gemfile +++ b/Gemfile @@ -88,6 +88,7 @@ gem 'factory_girl_rails',"~>4.5.0" gem 'rspec-rails' gem 'minitest', "~>4.7.5" gem 'rspec-collection_matchers' +gem 'rspec-activemodel-mocks' gem 'rspec-expectations' end diff --git a/MyText, b/MyText, new file mode 100644 index 0000000..e69de29 diff --git a/Nachname, b/Nachname, new file mode 100644 index 0000000..e69de29 diff --git a/Short, b/Short, new file mode 100644 index 0000000..e69de29 diff --git a/Vorname, b/Vorname, new file mode 100644 index 0000000..e69de29 diff --git a/false b/false new file mode 100644 index 0000000..e69de29 diff --git a/spec/views/fetprofiles/show.html.erb_spec.rb b/spec/views/fetprofiles/show.html.erb_spec.rb index 1e4294e..7c613ad 100644 --- a/spec/views/fetprofiles/show.html.erb_spec.rb +++ b/spec/views/fetprofiles/show.html.erb_spec.rb @@ -1,16 +1,11 @@ require 'spec_helper' -describe "fetprofiles/show" do +describe "fetprofiles/show", :type => :view do before(:each) do - @fetprofile = assign(:fetprofile, stub_model(Fetprofile, - :vorname => "Vorname", - :nachname => "Nachname", - :short => "Short", - :fetmailalias => "Fetmailalias", - :desc => "MyText", - - :active => false - )) +# @fetprofile = + #assign(:fetprofile, stub_model(Fetprofile, FactoryGirl.attributes_for(:fetprofile))) + default_url_options[:locale] = :de + assign(:fetprofile, FactoryGirl.create(:fetprofile)) end it "renders attributes in

" do