spec/unit/view_spec.rb in ayadn-1.8.2 vs spec/unit/view_spec.rb in ayadn-2.0
- old
+ new
@@ -15,33 +15,39 @@
name: :yellow,
source: :blue,
symbols: :green,
index: :blue,
date: :cyan,
- link: :magenta
+ link: :magenta,
+ excerpt: :green
},
timeline: {
- show_real_name: true,
- show_date: true,
- show_symbols: true,
- show_source: true
+ name: true,
+ date: true,
+ symbols: true,
+ source: true
},
formats: {
table: {width: 75},
list: {reverse: true}
},
counts: {
default: 33
- }
+ },
+ blacklist: {active: true}
})
Ayadn::Settings.stub(:config).and_return({
identity: {
username: 'test'
}
})
+ Ayadn::Settings.stub(:global).and_return({
+ scrolling: false
+ })
Ayadn::Logs.stub(:rec).and_return("logged")
Ayadn::Databases.stub(:blacklist).and_return("blacklist")
Ayadn::Databases.stub(:save_indexed_posts).and_return("indexed")
+ Ayadn::Databases.stub(:is_in_blacklist?).and_return(false)
end
describe "#settings" do
it 'outputs the settings' do
printed = capture_stdout do